wxwidgets cannot compile samples and demos Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

wxwidgets cannot compile samples and demos

Post by Cunoo » Tue Jul 28, 2020 8:31 pm

Hi guyz i have problem with compile demos and samples , look on screen i have in documentation how to install... its necessary for using ?
[email protected] wxwidgets % cd samples; make;cd ..
make: *** No targets specified and no makefile found. Stop.
[email protected] wxwidgets % cd demos; make;cd ..
make: *** No targets specified and no makefile found. Stop.
[email protected] wxwidgets % cd demos; make;
make: *** No targets specified and no makefile found. Stop.
[email protected] demos %

can any idea please ?
Attachments
Screenshot 2020-07-28 at 22.28.55.png
Screenshot 2020-07-28 at 22.28.55.png (78.9 KiB) Viewed 170 times

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxwidgets cannot compile samples and demos

Post by doublemax » Wed Jul 29, 2020 5:42 am

Code: Select all

    mkdir build-cocoa-debug
    cd build-cocoa-debug
    ../configure --enable-debug
    make
Did this first step complete successfully? That's the one that builds the wxWidgets libraries. Before these are built, you can't build the samples or anything else.
Use the source, Luke!

Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

Re: wxwidgets cannot compile samples and demos

Post by Cunoo » Wed Jul 29, 2020 6:59 am

yes this is commands works fine

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxwidgets cannot compile samples and demos

Post by doublemax » Wed Jul 29, 2020 7:04 am

You must be inside the 'build-cocoa-debug' directory when executing these commands.
Use the source, Luke!

Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

Re: wxwidgets cannot compile samples and demos

Post by Cunoo » Thu Jul 30, 2020 11:30 am

thanks but now how can i connect in xcode ?

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxwidgets cannot compile samples and demos

Post by doublemax » Thu Jul 30, 2020 12:51 pm

As i don't work under OSX i can't help here. What about the Xcode project files that do exist for the library itself and the "minimal" sample?
Use the source, Luke!

Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

Re: wxwidgets cannot compile samples and demos

Post by Cunoo » Thu Jul 30, 2020 12:52 pm

i dont know how to connect library on this i cant find tutorial on wxwidgeds side :(

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxwidgets cannot compile samples and demos

Post by doublemax » Thu Jul 30, 2020 1:14 pm

I'm not sure what you mean with "connect library on this". What happens when you try to load "minimal_cocoa.xcodeproj" in /samples/minimal/? It should show to to link the wxWidgets libraries to your code.
Use the source, Luke!

Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

Re: wxwidgets cannot compile samples and demos

Post by Cunoo » Thu Jul 30, 2020 1:31 pm

i mean connect my library with my project in xcode (iddle) how can i connect ?

Cunoo
Earned a small fee
Earned a small fee
Posts: 24
Joined: Tue Jul 28, 2020 8:23 pm

Re: wxwidgets cannot compile samples and demos

Post by Cunoo » Thu Jul 30, 2020 6:16 pm

doublemax wrote:
Thu Jul 30, 2020 1:14 pm
I'm not sure what you mean with "connect library on this". What happens when you try to load "minimal_cocoa.xcodeproj" in /samples/minimal/? It should show to to link the wxWidgets libraries to your code.
viewtopic.php?f=19&t=46984&p=197807&hil ... ts#p197807 this man hve same problem but isnt answer it

Post Reply