Writing wxWidget Applications on Mac
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Tue Dec 02, 2008 9:30 pm
- Contact:
Writing wxWidget Applications on Mac
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
Thanks
Brian
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Tue Dec 02, 2008 9:30 pm
- Contact:
Re: Writing wxWidget Applications on Mac
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
Thanks
Brian
- 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
Did u edit any environment variables inside codelite? (from settings -> environment varialbles...)
What do you have inside that table (settings -> environment varialbles...)
Eran
What do you have inside that table (settings -> environment varialbles...)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 69
- Joined: Fri Oct 24, 2008 10:29 pm
- Contact:
Re: Writing wxWidget Applications on Mac
Don't forget the PATH setting in Build Settings -> [compiler] -> Tools.
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: Writing wxWidget Applications on Mac
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
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
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Tue Dec 02, 2008 9:30 pm
- Contact:
Re: Writing wxWidget Applications on Mac
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
Thank for your help!
Brian
- 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
Yes you can. Just install (or build debug version) and thats it.zarnce wrote: Is it possible to have two versions (release and debug) of the wxWidgets library installed?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Tue Dec 02, 2008 9:30 pm
- Contact:
Re: Writing wxWidget Applications on Mac
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
Thanks
Brian
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: Writing wxWidget Applications on Mac
You have to use 'open $(ProjectName).app' to start it.
Frank
Frank
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Tue Dec 02, 2008 9:30 pm
- Contact:
Re: Writing wxWidget Applications on Mac
If I build and install the release version.eranif wrote:Yes you can. Just install (or build debug version) and thats it.zarnce wrote: Is it possible to have two versions (release and debug) of the wxWidgets library installed?
Eran
./configure
make
make install
and then
./configure --enable-debug
make
make install
the debug version wipes out the debug version.
Thanks
Brian