Page 1 of 1
Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 6:27 am
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 7:29 am
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 9:21 am
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 9:48 am
by sdolim
Don't forget the PATH setting in Build Settings -> [compiler] -> Tools.
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 4:28 pm
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 7:16 pm
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 7:26 pm
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 7:27 pm
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
Re: Writing wxWidget Applications on Mac
Posted: Fri Dec 05, 2008 10:23 pm
by frank_frl
You have to use 'open $(ProjectName).app' to start it.
Frank
Re: Writing wxWidget Applications on Mac
Posted: Sat Dec 06, 2008 12:05 am
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