wxWindows Osx settings

General questions regarding the usage of CodeLite
dumohacker
CodeLite Curious
Posts: 2
Joined: Sat Oct 19, 2013 4:39 am
Genuine User: Yes
IDE Question: C++
Contact:

wxWindows Osx settings

Post by dumohacker »

Thank you for building such a magical ide. I've spend years with visual studio but now the future is codelite ….. initial evaluation with wxWindows in windows looks fantastic, kudos and much appreciation to eranif for sharing this.

My friend google has let me down so i have no choice but to ask a very basic question here
wxWindows 3.0 complied and tested (samples) with xcode5 in osx10.8.5 but i cannot find any info on how to setup in codelite5.2 for Mac OSX 10.8 (App bundle).

Getting make[1]: wx-config: command not found when compiling.
Settings ->Environment Variable set to wxWindows complied root dir.

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

Re: wxWindows Osx settings

Post by eranif »

dumohacker wrote:Thank you for building such a magical ide. I've spend years with visual studio but now the future is codelite ….. initial evaluation with wxWindows in windows looks fantastic, kudos and much appreciation to eranif for sharing this.

My friend google has let me down so i have no choice but to ask a very basic question here
wxWindows 3.0 complied and tested (samples) with xcode5 in osx10.8.5 but i cannot find any info on how to setup in codelite5.2 for Mac OSX 10.8 (App bundle).

Getting make[1]: wx-config: command not found when compiling.
Settings ->Environment Variable set to wxWindows complied root dir.

Thanks
I am not sure how you built your wxWidgets on OSX, but did you remember to run make install?
At the end of the day, codelite uses wx-config to compile application using wxWidgets (this is the recommended way)

The process is quite straightforward:

- Download wx sources (make sure you pick the one of the Unix line ending)
- Compile it using the following steps:

Open Terminal and:

Code: Select all

cd wx-sources/
mkdir build
cd build
../configure --with-osx_cocoa --enable-shared --enable- monolithic
make -j4
sudo make install
To test that the installation worked properly, type from the command line:

Code: Select all

wx-config
you should some output (other than command not found ;))

Try codelite again

Eran
Make sure you have read the HOW TO POST thread
dumohacker
CodeLite Curious
Posts: 2
Joined: Sat Oct 19, 2013 4:39 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWindows Osx settings

Post by dumohacker »

Hi Eran
Thank you for your prompt response again much appreciated.

Downloaded codelite 5.3 App Bundle for OSX 10.8 followed instructions and no surprise wxWindows compiled, built wxHelloworld and it runs as a OSX app.

Trying to debug get Failed to locate gdb! at 'gdb'. Again google did not find a solution.

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

Re: wxWindows Osx settings

Post by eranif »

You will need to install gdb - IIRC, on OSX it comes with XCode
But I am not sure

You could also try 'brew install gdb'

Eran
Make sure you have read the HOW TO POST thread
Post Reply