Compile wxWidget on Snow Leopard

I just downloaded the wxWidget source code to my snow leopard machine. The source code is multi-platform, so it also contains the Windows and GTK components from wxWidget. I would like to compile the wxWidget source code but have not found a good guide yet.

This is my first step towards creating a multiplatform project, hopefully I can use CMake to create a makefile later.

Any help would be appreciated.

EDIT: just to clarify, I would like to build a stable version of wxWidget on Snow Leopard, it will build wxWidget 2.8.x on OS X 10.6.x. I read the compilation of the wiki here http://wiki.wxwidgets.org/Development:_wxMac#Building_under_10.6_Snow_Leopard Sorry it didn't help.

+2


a source to share


2 answers


I like to use configure / make / make install:

./configure --enable-monolithic --enable-universal_binary --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
make
sudo make install

      



I just tried it with wxWidgets 2.9.0 and it worked great.

+2


a source


wxWiki is always a good place for guides, in particular on various OSXs, and an additional note here on compiling according to 10.6.

It would also be good to notice that there were many changes between the current stable versions and the trunk, especially most of the work was done on the Cocoa port.



Using CMake is pretty straight forward, just check the FindWxWidgets.cmake file in CMake for instructions, you can also check the CMake docs (I would give a link, but they don't seem to work right now).

+1


a source







All Articles