= Building on Mac OSX using frameworks and cmake (QGIS > 0.8) =
= Building on Mac OSX using frameworks and cmake or Xcode =
In this approach I will try to avoid as much as possible building dependencies
from source and rather use frameworks wherever possible.
Included are a few notes for building on Mac OS X 10.5 (__Leopard__) and 10.6
(__Snow Leopard__).
The base system here is Mac OS X 10.4 (__Tiger__) and below. Included are a few notes
for building on Mac OS X 10.5 (__Leopard__) and 10.6 (__Snow Leopard__).
__Snow Leopard note:__ A cmake/qt/sip bug currently exists where a 32-bit
cmake build fails to provide python bindings. This means that python plugin support
is currently lacking for 32-bit builds using cmake in Snow Leopard. See the Xcode
build method to if you require python support.
== Install XCODE ==
== Install Xcode ==
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
XCODE after the ~1gb download is complete.
I recommend to get the latest Xcode dmg from the Apple XDC Web site
(http:/developer.apple.com). The Mac system install disks come with a copy of
Xcode, but it's likely out of date.
Install Xcode after the ~1gb download is complete.
/!\ Note: It may be that you need to create some symlinks after installing
the XCODE SDK (in particular if you are using XCODE 2.5 on tiger):
Xcode (in particular if you are using Xcode 2.5 on Tiger):
```
cd /Developer/SDKs/MacOSX10.4u.sdk/usr/
@@ -392,8 +394,7 @@ You need a minimum of Qt-4.3.0. I suggest getting the latest.
__Snow Leopard note:__ If you are building on Snow Leopard, you will need to
decide between 32-bit support in the older, Qt Carbon branch, or 64-bit
support in the Qt Cocoa branch. Appropriate installers are available for both
as of Qt-4.5.2, and the release candidate of Qt-4.6.0-cocoa works fairly well
with Qgis as tested with nightly snapshots of sip and pyqt.
as of Qt-4.5.2. Qt 4.6+ is recommended for Cocoa.
```
http://qt.nokia.com/downloads
@@ -405,7 +406,10 @@ addition to the non-debug frameworks.
Once downloaded open the dmg and run the installer. Note you need admin
privileges to install.
__Qt 4.4+ note:__ Starting in Qt 4.4 (?) libQtCLucene was added, and in 4.5 libQtUiTools was added, both in /usr/lib. When using a system SDK (which will happen in the Xcode build), these libraries will not be found. To fix this problem, add symlinks to /usr/local:
__Qt 4.4+ note:__ Starting in Qt 4.4 (?) libQtCLucene was added, and in 4.5
libQtUiTools was added, both in /usr/lib. When using a system SDK (which will
happen in the Xcode build), these libraries will not be found. To fix this problem,