Saturday, June 28, 2014

Building wxWidgets from source

Installing wxWidgets under OS X involves building from source.

The wxWidgets folks host a wiki with the following call to configure:

../configure --with-osx_cocoa --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk --prefix="$(pwd)"


I had to change both 10.7 references to 10.8 because I'm running Mountain Lion (10.8). So this worked correctly:

../configure --with-osx_cocoa --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk --prefix="$(pwd)"


The rest of install was completed with make.

The command was taken from here:

http://wiki.wxwidgets.org/Compiling_wxWidgets_using_the_command-line_(Terminal)

No comments: