Skip to content
Permalink
Browse files

Updated osx build procedure with notes from William

git-svn-id: http://svn.osgeo.org/qgis/trunk@8193 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Mar 7, 2008
1 parent 403e095 commit f32ec9800447c12208dba01ae8df28a667fb3509
Showing with 33 additions and 17 deletions.
  1. +33 −17 INSTALL.t2t
@@ -639,40 +639,56 @@ this:

I suggest you press 'p' to accept the key permanently.


== Configure the build ==

CMake supports out of source build so we will create a 'build' dir for the
build process . By convention I build my software into a dir called 'apps'
in my home directory. If you have the correct permissions you may want to
build straight into your /Applications folder (although personally I dont
really recommend this). The instructions below assume you are building into
a pre-existing ${HOME}/apps directory ...
build process . By convention I build my software into a dir called 'apps' in
my home directory. If you have the correct permissions you may want to build
straight into your /Applications folder. The instructions below assume you are
building into a pre-existing ${HOME}/apps directory ...

```
cd qgis
mkdir build
cd build
```
cd qgis
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release ..
```

__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:
__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:

```
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -D SIP_BINARY_PATH=/usr/local/bin/sip ..
```
cmake -D CMAKE_INSTALL_PREFIX=$HOME/apps/ -D CMAKE_BUILD_TYPE=Release -
D SIP_BINARY_PATH=/usr/local/bin/sip ..
```

To use a specific GRASS version, You can optionally use the following
cmake invocation (with modifications to suite your system (thanks William
Kyngesburye for this hint):
To use the application build of GRASS on OSX, you can optionally use the
following cmake invocation (minimum GRASS 6.3 required, substitute the GRASS
version as required):

```
cmake -D CMAKE_INSTALL_PREFIX=${HOME}/apps/ \
-D GRASS_INCLUDE_DIR=/Applications/GRASS-6.3.app/Contents/Resources/include \
-D GRASS_PREFIX=/Applications/GRASS-6.3.app/Contents/Resources \
-D GRASS_INCLUDE_DIR=/Applications/GRASS-6.3.app/Contents/MacOS/
include \
-D GRASS_PREFIX=/Applications/GRASS-6.3.app/Contents/MacOS \
-D CMAKE_BUILD_TYPE=Release \
..
```

Or, to use a Unix-style build of GRASS, use the following cmake invocation
(minimum GRASS version as stated in the Qgis requirements, substitute the GRASS
path and version as required):

```
cmake -D CMAKE_INSTALL_PREFIX=${HOME}/apps/ \
-D GRASS_INCLUDE_DIR=/user/local/grass-6.3.0/include \
-D GRASS_PREFIX=/user/local/grass-6.3.0 \
-D CMAKE_BUILD_TYPE=Release \
..
```

== Building ==

Now we can start the build process:

0 comments on commit f32ec98

Please sign in to comment.
You can’t perform that action at this time.