Skip to content

Commit 495c6a6

Browse files
author
timlinux
committedJan 29, 2008
Applied patch from William for Mac OSX build. Regenerated INSTALL from t2t doc
git-svn-id: http://svn.osgeo.org/qgis/trunk@8068 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ede437b commit 495c6a6

File tree

2 files changed

+84
-37
lines changed

2 files changed

+84
-37
lines changed
 

‎INSTALL

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ Building QGIS from source - step by step
3838
4.5. Install subversion for OSX
3939
4.6. Check out QGIS from SVN
4040
4.7. Configure the build
41-
4.8. GEOS Issues
42-
4.9. Building
41+
4.8. Building
4342
5. Building on GNU/Linux
4443
5.1. Building QGIS with Qt4.x
4544
5.2. Prepare apt
@@ -436,6 +435,8 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
436435
In this approach I will try to avoid as much as possible building dependencies
437436
from source and rather use frameworks wherever possible.
438437

438+
Included are a few notes for building on Mac OS X 10.5 (Leopard).
439+
439440

440441
4.1. Install XCODE
441442
==================
@@ -487,7 +488,7 @@ Download William Kyngesburye's excellent all in one framework that includes
487488
proj, gdal, sqlite3 etc
488489

489490

490-
http://www.kyngchaos.com/files/software/unixport/AllFrameworks.dmg
491+
http://www.kyngchaos.com/wiki/software:frameworks
491492

492493

493494
Once downloaded, open and install the frameworks.
@@ -496,7 +497,7 @@ William provides an additional installer package for Postgresql/PostGIS. Its
496497
available here:
497498

498499

499-
http://www.kyngchaos.com/software/unixport/postgres
500+
http://www.kyngchaos.com/wiki/software:postgres
500501

501502

502503
There are some additional dependencies that at the time of writing are not
@@ -546,13 +547,21 @@ Get the expat sources:
546547
4.3.3. Additional Dependencies : SIP
547548
====================================
548549

550+
Make sure you have the latest Python fom
551+
552+
553+
http://www.python.org/download/mac/
554+
555+
556+
Leopard note: Leopard includes a usable Python 2.5. Though you can install Python from python.org if preferred.
557+
549558
Retrieve the python bindings toolkit SIP from
550559

551560

552561
http://www.riverbankcomputing.com/Downloads/sip4/
553562

554563

555-
Then extract and build it to a prefix of /usr/local:
564+
Then extract and build it (this installs by default into the Python framework):
556565

557566

558567
tar xvfz sip-<version number>.tar.gz
@@ -563,16 +572,18 @@ Then extract and build it to a prefix of /usr/local:
563572
cd ..
564573

565574

575+
Leopard notes
566576

567-
4.3.4. Additional Dependencies : PyQt
568-
=====================================
577+
If building on Leopard, using Leopard's bundled Python, SIP wants to install in the system path -- this is not a good idea. Use this configure command instead of the basic configure above:
569578

570-
Make sure you have the latest python fom
571579

580+
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip
572581

573-
http://www.python.org/download/mac/
574582

575583

584+
4.3.4. Additional Dependencies : PyQt
585+
=====================================
586+
576587
If you encounter problems compiling PyQt using the instructions
577588
below you can also try adding python from your frameworks dir
578589
explicitly to your path e.g.
@@ -587,22 +598,35 @@ Retrieve the python bindings toolkit for Qt from
587598
http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/
588599

589600

590-
Then extract and build it to a prefix of /usr/local:
601+
Then extract and build it (this installs by default into the Python framework):
591602

592603

593604
tar xvfz PyQt-mac<version number here>
594605
cd PyQt-mac<version number here>
606+
export QTDIR=/Developer/Applications/Qt
595607
python configure.py
596608
yes
597609
make
598610
sudo make install
599611
cd ..
600612

601613

614+
Leopard notes
615+
616+
If building on Leopard, using Leopard's bundled Python, PyQt wants to install in the system path -- this is not a good idea. Use this configure command instead of the basic configure above:
617+
618+
619+
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin
620+
621+
622+
There may be a problem with undefined symbols in QtOpenGL on Leopard. Edit QtOpenGL/makefile and add -undefined dynamic_lookup to LFLAGS.
623+
602624

603625
4.3.5. Additional Dependencies : Bison
604626
======================================
605627

628+
Leopard note: Leopard includes Bison 2.3, so this step can be skipped on Leopard.
629+
606630
The version of bison available by default on Mac OSX is too old so you need to
607631
get a more recent one on your system. Download if from:
608632

@@ -643,6 +667,8 @@ Once downloaded open the dmg and run the installer
643667
4.5. Install subversion for OSX
644668
===============================
645669

670+
Leopard note: Leopard includes SVN, so this step can be skipped on Leopard.
671+
646672
The http://sourceforge.net/projects/macsvn/ (MacSVN) project has a downloadable
647673
build of svn. If you are a GUI inclined person you may want to grab their gui
648674
client too. Get the command line client here:
@@ -747,6 +773,12 @@ a pre-existing ${HOME}/apps directory ...
747773
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release ..
748774

749775

776+
Leopard note: To find the custom install of SIP on Leopard, add -D SIP_BINARY_PATH=/usr/local/bin/sip to the cmake command above, before the .. at the end, ie:
777+
778+
779+
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -D SIP_BINARY_PATH=/usr/local/bin/sip ..
780+
781+
750782
To use a specific GRASS version, You can optionally use the following
751783
cmake invocation (with modifications to suite your system (thanks William
752784
Kyngesburye for this hint):
@@ -760,17 +792,7 @@ Kyngesburye for this hint):
760792

761793

762794

763-
4.8. GEOS Issues
764-
================
765-
766-
I had some issues with GEOS headers so I made the following edits:
767-
768-
In file /Library/Frameworks/GEOS.framework/Headers/io.h, comment out line 61
769-
770-
In file /Library/Frameworks/GEOS.framework/Headers/geom.h, comment out line 145
771-
772-
773-
4.9. Building
795+
4.8. Building
774796
=============
775797

776798
Now we can start the build process:
@@ -1189,7 +1211,7 @@ Run these commands:
11891211

11901212

11911213
export PATH="/usr/local/bin:/usr/local/lib:$PATH"
1192-
./configure --prefix=/usr/local --bindir=/usr/local --with-includes=/usr/local/include --with-libs=/usr/local/lib --with-cxx --without-jpeg --without-tiff --without-postgres --with-opengl=windows --with-fftw --with-freetype --with-freetype-includes=/usr/local/include/freetype2 --without-x --without-tcltk --enable-x11=no --enable-shared=yes --with-proj-share=/usr/local/share/proj
1214+
./configure --prefix=/usr/local --bindir=/usr/local --with-includes=/usr/local/include --with-libs=/usr/local/lib --with-cxx --without-jpeg --without-tiff --with-postgres=yes --with-postgres-includes=/local/pgsql/include --with-pgsql-libs=/local/pgsql/lib --with-opengl=windows --with-fftw --with-freetype --with-freetype-includes=/mingw/include/freetype2 --without-x --without-tcltk --enable-x11=no --enable-shared=yes --with-proj-share=/usr/local/share/proj
11931215
make
11941216
make install
11951217

‎INSTALL.t2t

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ on qgis.nsi and choose the option 'Compile NSIS Script'.
341341
In this approach I will try to avoid as much as possible building dependencies
342342
from source and rather use frameworks wherever possible.
343343

344+
Included are a few notes for building on Mac OS X 10.5 (__Leopard__).
345+
344346
== Install XCODE ==
345347

346348
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
@@ -387,7 +389,7 @@ Download William Kyngesburye's excellent all in one framework that includes
387389
proj, gdal, sqlite3 etc
388390

389391
```
390-
http://www.kyngchaos.com/files/software/unixport/AllFrameworks.dmg
392+
http://www.kyngchaos.com/wiki/software:frameworks
391393
```
392394

393395
Once downloaded, open and install the frameworks.
@@ -396,7 +398,7 @@ William provides an additional installer package for Postgresql/PostGIS. Its
396398
available here:
397399

398400
```
399-
http://www.kyngchaos.com/software/unixport/postgres
401+
http://www.kyngchaos.com/wiki/software:postgres
400402
```
401403

402404
There are some additional dependencies that at the time of writing are not
@@ -440,13 +442,21 @@ cd ..
440442

441443
=== Additional Dependencies : SIP ===
442444

445+
Make sure you have the latest Python fom
446+
447+
```
448+
http://www.python.org/download/mac/
449+
```
450+
451+
__Leopard note:__ Leopard includes a usable Python 2.5. Though you can install Python from python.org if preferred.
452+
443453
Retrieve the python bindings toolkit SIP from
444454

445455
```
446456
http://www.riverbankcomputing.com/Downloads/sip4/
447457
```
448458

449-
Then extract and build it to a prefix of /usr/local:
459+
Then extract and build it (this installs by default into the Python framework):
450460

451461
```
452462
tar xvfz sip-<version number>.tar.gz
@@ -457,14 +467,16 @@ sudo make install
457467
cd ..
458468
```
459469

460-
=== Additional Dependencies : PyQt ===
470+
__Leopard notes__
461471

462-
Make sure you have the latest python fom
472+
If building on Leopard, using Leopard's bundled Python, SIP wants to install in the system path -- this is not a good idea. Use this configure command instead of the basic configure above:
463473

464474
```
465-
http://www.python.org/download/mac/
475+
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip
466476
```
467477

478+
=== Additional Dependencies : PyQt ===
479+
468480
If you encounter problems compiling PyQt using the instructions
469481
below you can also try adding python from your frameworks dir
470482
explicitly to your path e.g.
@@ -479,20 +491,33 @@ Retrieve the python bindings toolkit for Qt from
479491
http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/
480492
```
481493

482-
Then extract and build it to a prefix of /usr/local:
494+
Then extract and build it (this installs by default into the Python framework):
483495

484496
```
485497
tar xvfz PyQt-mac<version number here>
486498
cd PyQt-mac<version number here>
499+
export QTDIR=/Developer/Applications/Qt
487500
python configure.py
488501
yes
489502
make
490503
sudo make install
491504
cd ..
492505
```
493506

507+
__Leopard notes__
508+
509+
If building on Leopard, using Leopard's bundled Python, PyQt wants to install in the system path -- this is not a good idea. Use this configure command instead of the basic configure above:
510+
511+
```
512+
python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin
513+
```
514+
515+
There may be a problem with undefined symbols in QtOpenGL on Leopard. Edit QtOpenGL/makefile and add ""-undefined dynamic_lookup"" to LFLAGS.
516+
494517
=== Additional Dependencies : Bison ===
495518

519+
__Leopard note:__ Leopard includes Bison 2.3, so this step can be skipped on Leopard.
520+
496521
The version of bison available by default on Mac OSX is too old so you need to
497522
get a more recent one on your system. Download if from:
498523

@@ -529,6 +554,8 @@ Once downloaded open the dmg and run the installer
529554

530555
== Install subversion for OSX ==
531556

557+
__Leopard note:__ Leopard includes SVN, so this step can be skipped on Leopard.
558+
532559
The [http://sourceforge.net/projects/macsvn/ MacSVN] project has a downloadable
533560
build of svn. If you are a GUI inclined person you may want to grab their gui
534561
client too. Get the command line client here:
@@ -628,6 +655,12 @@ cd build
628655
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release ..
629656
```
630657

658+
__Leopard note:__ To find the custom install of SIP on Leopard, add ""-D SIP_BINARY_PATH=/usr/local/bin/sip"" to the cmake command above, before the "".."" at the end, ie:
659+
660+
```
661+
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -D SIP_BINARY_PATH=/usr/local/bin/sip ..
662+
```
663+
631664
To use a specific GRASS version, You can optionally use the following
632665
cmake invocation (with modifications to suite your system (thanks William
633666
Kyngesburye for this hint):
@@ -640,14 +673,6 @@ cmake -D CMAKE_INSTALL_PREFIX=${HOME}/apps/ \
640673
..
641674
```
642675

643-
== GEOS Issues ==
644-
645-
I had some issues with GEOS headers so I made the following edits:
646-
647-
In file /Library/Frameworks/GEOS.framework/Headers/io.h, comment out line 61
648-
649-
In file /Library/Frameworks/GEOS.framework/Headers/geom.h, comment out line 145
650-
651676
== Building ==
652677

653678
Now we can start the build process:

0 commit comments

Comments
 (0)
Please sign in to comment.