Skip to content

Commit

Permalink
Updated osx build procedure with notes from William
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8193 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 7, 2008
1 parent ffb7ce9 commit 8a8efe2
Showing 1 changed file with 33 additions and 17 deletions.
50 changes: 33 additions & 17 deletions INSTALL.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a8efe2

Please sign in to comment.