@@ -766,37 +766,52 @@ I suggest you press 'p' to accept the key permanently.
766
766
========================
767
767
768
768
CMake supports out of source build so we will create a 'build' dir for the
769
- build process . By convention I build my software into a dir called 'apps'
770
- in my home directory. If you have the correct permissions you may want to
771
- build straight into your /Applications folder (although personally I dont
772
- really recommend this). The instructions below assume you are building into
773
- a pre-existing ${HOME}/apps directory ...
769
+ build process . By convention I build my software into a dir called 'apps' in
770
+ my home directory. If you have the correct permissions you may want to build
771
+ straight into your /Applications folder. The instructions below assume you are
772
+ building into a pre-existing ${HOME}/apps directory ...
774
773
775
774
776
- cd qgis
777
- mkdir build
778
- cd build
775
+ cd qgis
776
+ mkdir build
777
+ cd build
779
778
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release ..
780
779
781
780
782
- 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:
781
+ Leopard note: To find the custom install of SIP on Leopard, add ""-
782
+ D SIP_BINARY_PATH=/usr/local/bin/sip"" to the cmake command above,
783
+ before the .. at the end, ie:
783
784
784
785
785
- cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -D SIP_BINARY_PATH=/usr/local/bin/sip ..
786
+ cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -
787
+ D SIP_BINARY_PATH=/usr/local/bin/sip ..
786
788
787
789
788
- To use a specific GRASS version, You can optionally use the following
789
- cmake invocation (with modifications to suite your system (thanks William
790
- Kyngesburye for this hint ):
790
+ To use the application build of GRASS on OSX, you can optionally use the
791
+ following cmake invocation (minimum GRASS 6.3 required, substitute the GRASS
792
+ version as required ):
791
793
792
794
793
795
cmake -D CMAKE_INSTALL_PREFIX=${HOME}/apps/ \
794
- -D GRASS_INCLUDE_DIR=/Applications/GRASS-6.3.app/Contents/Resources/include \
795
- -D GRASS_PREFIX=/Applications/GRASS-6.3.app/Contents/Resources \
796
+ -D GRASS_INCLUDE_DIR=/Applications/GRASS-6.3.app/Contents/MacOS/
797
+ include \
798
+ -D GRASS_PREFIX=/Applications/GRASS-6.3.app/Contents/MacOS \
796
799
-D CMAKE_BUILD_TYPE=Release \
797
800
..
798
801
799
802
803
+ Or, to use a Unix-style build of GRASS, use the following cmake invocation
804
+ (minimum GRASS version as stated in the Qgis requirements, substitute the GRASS
805
+ path and version as required):
806
+
807
+
808
+ cmake -D CMAKE_INSTALL_PREFIX=${HOME}/apps/ \
809
+ -D GRASS_INCLUDE_DIR=/user/local/grass-6.3.0/include \
810
+ -D GRASS_PREFIX=/user/local/grass-6.3.0 \
811
+ -D CMAKE_BUILD_TYPE=Release \
812
+ ..
813
+
814
+
800
815
801
816
4.8. Building
802
817
=============
@@ -821,7 +836,7 @@ If all built without errors you can then install it:
821
836
5.1. Building QGIS with Qt4.x
822
837
=============================
823
838
824
- Requires: Ubuntu Edgy / Debian derived distro
839
+ Requires: Ubuntu Gutsy / Debian derived distro
825
840
826
841
These notes are current for Ubuntu 7.10 - other versions and Debian derived
827
842
distros may require slight variations in package names.
0 commit comments