Compiling wxWidgets with Xcode
From WxWiki
| This article applies to the following versions | ||
| Platform | wxWidgets | Xcode |
|---|---|---|
| Mac OS X 10.5.6 | 2.8.9 | 3.1.2 |
| Status: Up to Date | ||
| Note: Building wxWidgets using Xcode is generally less flexible and reliable than use the terminal. It will also not generate any wx-config. If you meet problems, wish to customize your build, want to use wx-config, or just in doubt, see Compiling wxWidgets using the command-line (Terminal). |
Contents |
[edit] Install Xcode
Please follow the steps described in Installing Xcode.
[edit] Download and Install wxWidgets
See Downloading and installing wxWidgets.
[edit] Build the library
- Launch Xcode.
- Open /src/wxWindows.xcodeproj (not wxWindows.xcode, which is for older Xcode versions).
- If asked to 'Select the directory to use as the project root', select the /src folder.
- The various build configurations can be seen in the illustration on the right. See Understanding wxWidgets Build Scheme for more info.
- Build (command-B).
- The build output is located under /src/build.
[edit] Samples
Some (but far from all) samples come with Xcode projects (e.g. check minimal) prefer .xcodeproj projects over .xcode ones, they're made for more recent versions of Xcode.

