Page 1 of 1

Mac OSX + Wxwidgets application

Posted: Sat Jan 01, 2011 10:56 pm
by Cook
Hi,

I'm using CodeLite with WxWidgets 2.9 application. By default, CodeLite build the WxWidget application as shell executable and currently i can't move the WxWidgets windows when executing the result executable, but i can access to minimize and close top-left buttons. i.e. Codelite build the WxWidgets application fine, the problem is i can't move the wx-window.

Does anyone know why? I would need the g++ flags for OSX application build

Thank you in advance.

Re: Mac OSX + Wxwidgets application

Posted: Sun Jan 02, 2011 10:52 am
by eranif
This is why:

http://www.wxwidgets.org/docs/faqmac.htm#nofocus

To fix this,
codelite provides a plugin named "Mac Bundler" by Auria (I am not sure if it is enabled by default) - you should create your wxWidgets as a bundle and replace the standard shell command (in the project settings ->general ) with the Mac command:

Code: Select all

open MyApp.app/
Where MyApp.app is the bundle directory that you created using the "Mac Bundler" plugin

Eran

Re: Mac OSX + Wxwidgets application

Posted: Fri Jan 07, 2011 8:27 pm
by Cook
Thank you Eran.

On Windows, when compiling with MingWG and executing the exe application outside CodeLite IDE ask me for "mingwm10.dll". Is there any way to run the application without external dll's?

Re: Mac OSX + Wxwidgets application

Posted: Sat Jan 08, 2011 12:07 am
by eranif
If you are using MinGW - then no, you need mingwm10.dll

Eran