Skip to content

Commit

Permalink
OSX install updates
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13662 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
kyngchaos committed Jun 5, 2010
1 parent 102d16c commit f18b4f7
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 40 deletions.
55 changes: 35 additions & 20 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
In this approach I will try to avoid as much as possible building dependencies
from source and rather use frameworks wherever possible.

The base system here is Mac OS X 10.4 (Tiger) and below. Included are a few notes
The base system here is Mac OS X 10.4 (Tiger). 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
Expand Down Expand Up @@ -533,7 +533,7 @@ PROJ, GEOS, GDAL, SQLite3, and image libraries, as frameworks. There is also
a GSL framework.


http://www.kyngchaos.com/wiki/software:frameworks
http://www.kyngchaos.com/wiki/software/frameworks


Once downloaded, open and install the frameworks.
Expand All @@ -544,13 +544,13 @@ Postgres + PostGIS server, all you need is the client-only package.
It's available here:


http://www.kyngchaos.com/wiki/software:postgres
http://www.kyngchaos.com/wiki/software/postgres


Also available is a GRASS application:


http://www.kyngchaos.com/wiki/software:grass
http://www.kyngchaos.com/wiki/software/grass



Expand All @@ -565,6 +565,9 @@ Likewise, for 32-bit support on Snow Leopard, you will need to override the
default system architecture, which is 64-bit, according to instructions for
individual dependency packages.

Stable release versions are preferred. Beta and other development versions may
have problems and you are on your own with those.


4.3.2. Additional Dependencies : Expat
======================================
Expand All @@ -586,12 +589,6 @@ Double-click the source tarball to unpack, then, in Terminal.app, cd to the sour
sudo make install


Leopard note: To compile for 64bit, substitute the standard configure line with:


./configure CFLAGS="-Os -arch x86_64"



4.3.3. Additional Dependencies : Python
=======================================
Expand Down Expand Up @@ -634,8 +631,8 @@ system path -- this is not a good idea. Use this configure command instead of t
basic configure above:


python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip
python configure.py -n -d /Library/Python/2.5/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip -s MacOSX10.5.sdk


Snow Leopard notes
Expand All @@ -646,15 +643,15 @@ and make sure to run the versioned python binary (this one responds to the
'arch' command, 'python' does not). If you are using 32-bit Qt (Qt Carbon):


python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=i386
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=i386 -s MacOSX10.6.sdk


For 64-bit Qt (Qt Cocoa), use this configure line:


python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64 -s MacOSX10.6.sdk



Expand All @@ -671,7 +668,6 @@ Double-click the source tarball to unpack it, then, in Terminal.app, cd to the s
and (this installs by default into the Python framework, and is appropriate only for python.org Python installs):


export QTDIR=/Developer/Applications/Qt
python configure.py
yes

Expand Down Expand Up @@ -737,8 +733,19 @@ Double-click the tarball to unpack it. The following assumes PyQwt v5.2.0 (come
Now, first edit qwtconfig.pri in the qwt-5.2 subdir and change some settings so
you don't get a bloated debug static library (too bad they are not configurable from
qmake). Scroll down to the 'release/debug mode' block. Edit the last 'CONFIG +='
line, within an 'else' block, and change 'debug' to 'release'. Also uncomment
(remove # prefix) the line 'CONFIG += QwtDll'.
line, within an 'else' block, and change 'debug' to 'release'. Like so:


else {
CONFIG += release # release/debug
}


Also uncomment (remove # prefix) the line 'CONFIG += QwtDll'. Like so:


CONFIG += QwtDll


Save and close.

Expand All @@ -765,6 +772,12 @@ Now for PyQwt. Still in the Terminal:

Make sure to use the qwt install path from the Qwt build above.

Finally, if you run into problems with the library not being properly linked after you build qgis, you may need to fix that as follows and then rebuild qgis (this is not needed when bundling all Qt/PyQt related components, which is recommended, and default in the Xcode build):


sudo install_name_tool -id /usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib /usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib


Snow Leopard note

If using Qt Carbon, you need to specify which architectures to build, otherwise
Expand All @@ -783,7 +796,7 @@ This is not needed for Qt Cocoa. Configure as follows:

Leopard and Snow Leopard note: Leopard and Snow Leopard include Bison 2.3, so this step can be skipped on Leopard and Snow Leopard.

The version of bison available by default on Mac OS X 10.4 and older is too old so you need to
The version of bison available by default on Mac OS X 10.4 is too old so you need to
get a more recent one on your system. Download at least version 2.3 from:


Expand All @@ -803,6 +816,8 @@ tarball to unpack it, then cd to the source folder and:
4.4. Install CMake for OSX
==========================

(Only needed for a cmake build.)

Get the latest source release from here:


Expand Down
49 changes: 29 additions & 20 deletions doc/INSTALL.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
In this approach I will try to avoid as much as possible building dependencies
from source and rather use frameworks wherever possible.

The base system here is Mac OS X 10.4 (__Tiger__) and below. Included are a few notes
The base system here is Mac OS X 10.4 (__Tiger__). 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
Expand Down Expand Up @@ -427,7 +427,7 @@ PROJ, GEOS, GDAL, SQLite3, and image libraries, as frameworks. There is also
a GSL framework.

```
http://www.kyngchaos.com/wiki/software:frameworks
http://www.kyngchaos.com/wiki/software/frameworks
```

Once downloaded, open and install the frameworks.
Expand All @@ -438,13 +438,13 @@ Postgres + PostGIS server, all you need is the client-only package.
It's available here:

```
http://www.kyngchaos.com/wiki/software:postgres
http://www.kyngchaos.com/wiki/software/postgres
```

Also available is a GRASS application:

```
http://www.kyngchaos.com/wiki/software:grass
http://www.kyngchaos.com/wiki/software/grass
```

=== Additional Dependencies : General compatibility note ===
Expand All @@ -457,6 +457,9 @@ Likewise, for 32-bit support on Snow Leopard, you will need to override the
default system architecture, which is 64-bit, according to instructions for
individual dependency packages.

Stable release versions are preferred. Beta and other development versions may
have problems and you are on your own with those.

=== Additional Dependencies : Expat ===

__Snow Leopard note:__ Snow Leopard includes a usable expat, so this step is
Expand All @@ -476,12 +479,6 @@ make
sudo make install
```

__Leopard note:__ To compile for 64bit, substitute the standard configure line with:

```
./configure CFLAGS="-Os -arch x86_64"
```


=== Additional Dependencies : Python ===

Expand Down Expand Up @@ -522,8 +519,8 @@ system path -- this is not a good idea. Use this configure command instead of t
basic configure above:

```
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip
python configure.py -n -d /Library/Python/2.5/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip -s MacOSX10.5.sdk
```

__Snow Leopard notes__
Expand All @@ -534,15 +531,15 @@ and make sure to run the versioned python binary (this one responds to the
'arch' command, 'python' does not). If you are using 32-bit Qt (Qt Carbon):

```
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=i386
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=i386 -s MacOSX10.6.sdk
```

For 64-bit Qt (Qt Cocoa), use this configure line:

```
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64 -s MacOSX10.6.sdk
```


Expand All @@ -558,7 +555,6 @@ Double-click the source tarball to unpack it, then, in Terminal.app, cd to the s
and (this installs by default into the Python framework, and is appropriate only for python.org Python installs):

```
export QTDIR=/Developer/Applications/Qt
python configure.py
yes
```
Expand Down Expand Up @@ -623,8 +619,19 @@ Double-click the tarball to unpack it. The following assumes PyQwt v5.2.0 (come
Now, first edit qwtconfig.pri in the qwt-5.2 subdir and change some settings so
you don't get a bloated debug static library (too bad they are not configurable from
qmake). Scroll down to the 'release/debug mode' block. Edit the last 'CONFIG +='
line, within an 'else' block, and change 'debug' to 'release'. Also uncomment
(remove # prefix) the line 'CONFIG += QwtDll'.
line, within an 'else' block, and change 'debug' to 'release'. Like so:

```
else {
CONFIG += release # release/debug
}
```

Also uncomment (remove # prefix) the line 'CONFIG += QwtDll'. Like so:

```
CONFIG += QwtDll
```

Save and close.

Expand Down Expand Up @@ -673,7 +680,7 @@ python configure.py --extra-cflags="-arch i386" --extra-cxxflags="-arch i386" \

__Leopard and Snow Leopard note:__ Leopard and Snow Leopard include Bison 2.3, so this step can be skipped on Leopard and Snow Leopard.

The version of bison available by default on Mac OS X 10.4 and older is too old so you need to
The version of bison available by default on Mac OS X 10.4 is too old so you need to
get a more recent one on your system. Download at least version 2.3 from:

```
Expand All @@ -691,6 +698,8 @@ sudo make install

== Install CMake for OSX ==

(Only needed for a cmake build.)

Get the latest source release from here:

```
Expand Down

0 comments on commit f18b4f7

Please sign in to comment.