Skip to content

Commit f18b4f7

Browse files
author
kyngchaos
committedJun 5, 2010
OSX install updates
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13662 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+64
-40
lines changed

2 files changed

+64
-40
lines changed
 

‎INSTALL

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
463463
In this approach I will try to avoid as much as possible building dependencies
464464
from source and rather use frameworks wherever possible.
465465

466-
The base system here is Mac OS X 10.4 (Tiger) and below. Included are a few notes
466+
The base system here is Mac OS X 10.4 (Tiger). Included are a few notes
467467
for building on Mac OS X 10.5 (Leopard) and 10.6 (Snow Leopard).
468468

469469
Snow Leopard note: A cmake/qt/sip bug currently exists where a 32-bit
@@ -533,7 +533,7 @@ PROJ, GEOS, GDAL, SQLite3, and image libraries, as frameworks. There is also
533533
a GSL framework.
534534

535535

536-
http://www.kyngchaos.com/wiki/software:frameworks
536+
http://www.kyngchaos.com/wiki/software/frameworks
537537

538538

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

546546

547-
http://www.kyngchaos.com/wiki/software:postgres
547+
http://www.kyngchaos.com/wiki/software/postgres
548548

549549

550550
Also available is a GRASS application:
551551

552552

553-
http://www.kyngchaos.com/wiki/software:grass
553+
http://www.kyngchaos.com/wiki/software/grass
554554

555555

556556

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

568+
Stable release versions are preferred. Beta and other development versions may
569+
have problems and you are on your own with those.
570+
568571

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

588591

589-
Leopard note: To compile for 64bit, substitute the standard configure line with:
590-
591-
592-
./configure CFLAGS="-Os -arch x86_64"
593-
594-
595592

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

636633

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

640637

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

648645

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

652649

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

655652

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

659656

660657

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

673670

674-
export QTDIR=/Developer/Applications/Qt
675671
python configure.py
676672
yes
677673

@@ -737,8 +733,19 @@ Double-click the tarball to unpack it. The following assumes PyQwt v5.2.0 (come
737733
Now, first edit qwtconfig.pri in the qwt-5.2 subdir and change some settings so
738734
you don't get a bloated debug static library (too bad they are not configurable from
739735
qmake). Scroll down to the 'release/debug mode' block. Edit the last 'CONFIG +='
740-
line, within an 'else' block, and change 'debug' to 'release'. Also uncomment
741-
(remove # prefix) the line 'CONFIG += QwtDll'.
736+
line, within an 'else' block, and change 'debug' to 'release'. Like so:
737+
738+
739+
else {
740+
CONFIG += release # release/debug
741+
}
742+
743+
744+
Also uncomment (remove # prefix) the line 'CONFIG += QwtDll'. Like so:
745+
746+
747+
CONFIG += QwtDll
748+
742749

743750
Save and close.
744751

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

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

775+
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):
776+
777+
778+
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
779+
780+
768781
Snow Leopard note
769782

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

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

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

789802

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

819+
(Only needed for a cmake build.)
820+
806821
Get the latest source release from here:
807822

808823

‎doc/INSTALL.t2t

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
362362
In this approach I will try to avoid as much as possible building dependencies
363363
from source and rather use frameworks wherever possible.
364364

365-
The base system here is Mac OS X 10.4 (__Tiger__) and below. Included are a few notes
365+
The base system here is Mac OS X 10.4 (__Tiger__). Included are a few notes
366366
for building on Mac OS X 10.5 (__Leopard__) and 10.6 (__Snow Leopard__).
367367

368368
__Snow Leopard note:__ A cmake/qt/sip bug currently exists where a 32-bit
@@ -427,7 +427,7 @@ PROJ, GEOS, GDAL, SQLite3, and image libraries, as frameworks. There is also
427427
a GSL framework.
428428

429429
```
430-
http://www.kyngchaos.com/wiki/software:frameworks
430+
http://www.kyngchaos.com/wiki/software/frameworks
431431
```
432432

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

440440
```
441-
http://www.kyngchaos.com/wiki/software:postgres
441+
http://www.kyngchaos.com/wiki/software/postgres
442442
```
443443

444444
Also available is a GRASS application:
445445

446446
```
447-
http://www.kyngchaos.com/wiki/software:grass
447+
http://www.kyngchaos.com/wiki/software/grass
448448
```
449449

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

460+
Stable release versions are preferred. Beta and other development versions may
461+
have problems and you are on your own with those.
462+
460463
=== Additional Dependencies : Expat ===
461464

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

479-
__Leopard note:__ To compile for 64bit, substitute the standard configure line with:
480-
481-
```
482-
./configure CFLAGS="-Os -arch x86_64"
483-
```
484-
485482

486483
=== Additional Dependencies : Python ===
487484

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

524521
```
525-
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin \
526-
-e /usr/local/include -v /usr/local/share/sip
522+
python configure.py -n -d /Library/Python/2.5/site-packages -b /usr/local/bin \
523+
-e /usr/local/include -v /usr/local/share/sip -s MacOSX10.5.sdk
527524
```
528525

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

536533
```
537-
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
538-
-e /usr/local/include -v /usr/local/share/sip --arch=i386
534+
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
535+
-e /usr/local/include -v /usr/local/share/sip --arch=i386 -s MacOSX10.6.sdk
539536
```
540537

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

543540
```
544-
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
545-
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64
541+
python2.6 configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin \
542+
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64 -s MacOSX10.6.sdk
546543
```
547544

548545

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

560557
```
561-
export QTDIR=/Developer/Applications/Qt
562558
python configure.py
563559
yes
564560
```
@@ -623,8 +619,19 @@ Double-click the tarball to unpack it. The following assumes PyQwt v5.2.0 (come
623619
Now, first edit qwtconfig.pri in the qwt-5.2 subdir and change some settings so
624620
you don't get a bloated debug static library (too bad they are not configurable from
625621
qmake). Scroll down to the 'release/debug mode' block. Edit the last 'CONFIG +='
626-
line, within an 'else' block, and change 'debug' to 'release'. Also uncomment
627-
(remove # prefix) the line 'CONFIG += QwtDll'.
622+
line, within an 'else' block, and change 'debug' to 'release'. Like so:
623+
624+
```
625+
else {
626+
CONFIG += release # release/debug
627+
}
628+
```
629+
630+
Also uncomment (remove # prefix) the line 'CONFIG += QwtDll'. Like so:
631+
632+
```
633+
CONFIG += QwtDll
634+
```
628635

629636
Save and close.
630637

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

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

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

679686
```
@@ -691,6 +698,8 @@ sudo make install
691698

692699
== Install CMake for OSX ==
693700

701+
(Only needed for a cmake build.)
702+
694703
Get the latest source release from here:
695704

696705
```

0 commit comments

Comments
 (0)
Please sign in to comment.