Writing wxWidget Applications on Mac

General questions regarding the usage of CodeLite
zarnce
CodeLite Enthusiast
Posts: 13
Joined: Tue Dec 02, 2008 9:30 pm
Contact:

Writing wxWidget Applications on Mac

Post by zarnce »

I understand that to run a wxWidget application it needs to be in a ".app". Is it possible to create the ".app" with CodeLite?

Thanks
Brian
zarnce
CodeLite Enthusiast
Posts: 13
Joined: Tue Dec 02, 2008 9:30 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by zarnce »

I figured out that I can just create the directory structure by hand but I am still having a problem building the app from CodeLite. It can't find wx-config which is in /usr/local/bin. If I run make from the command line it finds wx-config just fine. Also is it possible to build/have debug and release versions of wxWidgets?

Thanks
Brian
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Writing wxWidget Applications on Mac

Post by eranif »

Did u edit any environment variables inside codelite? (from settings -> environment varialbles...)
What do you have inside that table (settings -> environment varialbles...)
Eran
Make sure you have read the HOW TO POST thread
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by sdolim »

Don't forget the PATH setting in Build Settings -> [compiler] -> Tools.
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by frank_frl »

Hi zarnce,

If your wx-config is in /usr/local/bin I guess you have compiled wxWidgets yourself and you are not using the version which comes with OSX. In this case you can just replace the wx-config alias in /usr/bin with the one in /usr/local/bin. You should rename the old one to be able to restore it . That's how I did it and it works.

For the .app package you can use a post-build command to create it with a bash script.

Frank
zarnce
CodeLite Enthusiast
Posts: 13
Joined: Tue Dec 02, 2008 9:30 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by zarnce »

I don't have anything set in the Environment Variables. I added a link from /usr/bin/wx-config to /usr/local/bin/wx-config. That made it so I can build but only the release version. wx-config lists only a release version. Is it possible to have two versions (release and debug) of the wxWidgets library installed?

Thank for your help!
Brian
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Writing wxWidget Applications on Mac

Post by eranif »

zarnce wrote: Is it possible to have two versions (release and debug) of the wxWidgets library installed?
Yes you can. Just install (or build debug version) and thats it.

Eran
Make sure you have read the HOW TO POST thread
zarnce
CodeLite Enthusiast
Posts: 13
Joined: Tue Dec 02, 2008 9:30 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by zarnce »

I took your advice frank and now have CodeLite create the app directory structure. I am still unable to run the app from the command line or through CodeLite. Is this normal?

Thanks
Brian
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by frank_frl »

You have to use 'open $(ProjectName).app' to start it.

Frank
zarnce
CodeLite Enthusiast
Posts: 13
Joined: Tue Dec 02, 2008 9:30 pm
Contact:

Re: Writing wxWidget Applications on Mac

Post by zarnce »

eranif wrote:
zarnce wrote: Is it possible to have two versions (release and debug) of the wxWidgets library installed?
Yes you can. Just install (or build debug version) and thats it.

Eran
If I build and install the release version.
./configure
make
make install

and then

./configure --enable-debug
make
make install

the debug version wipes out the debug version.

Thanks
Brian
Post Reply