Page 1 of 2
Issue with running wx Application on a MAC
Posted: Sun Jan 25, 2009 7:01 pm
by Roey
Hi,
I've managed to build a wx application on a mac, but when I run it, I get the main window but with no option to move it, or a corresponding app menu.
This is what I did:
Built the wx library in debug mode.
Created a new workspace in codelite (this was the first time I've launched codelite - I didn't configure anything).
Plugins > Gizmos > New wxWidgets Project Wizard > GUI Application with Main Frame
Build
Run
Am I missing something? I didn't configure any wx directory environment or such (I guess wx-config is responsible for that).
Thanks,
Roey
Re: Issue with running wx Application on a MAC
Posted: Sun Jan 25, 2009 7:15 pm
by eranif
This is a known wxWidgets & Mac issue.
Read this:
http://codelite.org/forum/viewtopic.php ... undle#p880
Eran
Re: Issue with running wx Application on a MAC
Posted: Sun Jan 25, 2009 7:55 pm
by Roey
Thanks,
Based on the other post, this is what I did:
Project Settings > General:
Output File: ./Test02App02.app/Contents/MacOS/Test02App02
Command: open Test02App02.app
Working Directory: /Development/CodeliteProj/Test02
(Note, by the way, there could be some bug with Working Directory; if you leave it blank, you get this on terminal: cd /Development/CodeliteProj/Test02 && cd && open Test02App02.app where the middle cd goes to the wrong folder, so the executable cannot be found. Shouldn't the middle cd be omitted if the working directory is blank?)
Anyway, are there any issues with this approach? If not, shouldn't the wizard do this by default?
Thanks,
roey
Re: Issue with running wx Application on a MAC
Posted: Wed Jan 28, 2009 1:17 am
by Roey
By the way, if anyone wishes to automatically close the terminal window that opens every time you hit Run:
Instead of:
Command: open Test02App02.app
Use:
Command: open Test02App02.app && exit
Then in Leopard:
Terminal > Preferences... > Settings > Shell > When the shell exits: > Close the window
Re: Issue with running wx Application on a MAC
Posted: Wed Jan 28, 2009 3:59 am
by eranif
Roey wrote:Then in Leopard:
Terminal > Preferences... > Settings > Shell > When the shell exits: > Close the window
Thanks for the tip, when I tried '&& exit' it only changed the prompt to '>' and thats it
(I am no Mac expert...)
Eran
Re: Issue with running wx Application on a MAC
Posted: Wed Jan 28, 2009 4:13 am
by Roey
Should I create a WIKI entry for this?
(By the way, where did the wiki developer link go? I could only find the SVN details via search).
Re: Issue with running wx Application on a MAC
Posted: Wed Jan 28, 2009 10:26 am
by eranif
Re: Issue with running wx Application on a MAC
Posted: Thu Jan 29, 2009 12:12 am
by Roey
And unless I'm missing something, the developer pages are not referenced from that page.
Re: Issue with running wx Application on a MAC
Posted: Thu Jan 29, 2009 12:53 pm
by eranif
Ok, please explain to me what are the "developer pages"
Eran
Re: Issue with running wx Application on a MAC
Posted: Thu Jan 29, 2009 2:55 pm
by Roey