1
1
Quantum GIS (QGIS)
2
2
Building QGIS from source - step by step
3
3
4
- Last update: 20110201
5
- Last change: 20110201
4
+ Last update: 20110327
5
+ Last change: 20110306
6
6
7
7
1. Introduction
8
8
2. Overview
@@ -758,9 +758,9 @@ Now close cmake-gui and continue on the command prompt by starting
758
758
vcexpress. Use File / Open / Project/Solutions and open the
759
759
qgis-x.y.z.sln File in your project directory.
760
760
761
- You probably want to change the Solution Configuration from Debug
762
- to RelWithDebInfo (Release with Debug Info) or Release before you
763
- build QGIS using the ALL_BUILD target .
761
+ Change Solution Configuration from Debug to RelWithDebInfo (Release
762
+ with Debug Info) or Release before you build QGIS using the ALL_BUILD
763
+ target (otherwise you need debug libraries that are not included) .
764
764
765
765
After the build completed you should install QGIS using the INSTALL target.
766
766
@@ -1641,8 +1641,6 @@ tarball to unpack it, then cd to the source folder and:
1641
1641
5.3. Install CMake for OSX
1642
1642
==========================
1643
1643
1644
- (Only needed for a cmake build.)
1645
-
1646
1644
Get the latest source release from here:
1647
1645
1648
1646
@@ -1762,7 +1760,8 @@ In a Terminal cd to the qgis source folder previously downloaded, then:
1762
1760
mkdir build
1763
1761
cd build
1764
1762
cmake -D CMAKE_INSTALL_PREFIX=~/Applications -D CMAKE_BUILD_TYPE=Release \
1765
- -D CMAKE_BUILD_TYPE=MinSizeRel -D WITH_INTERNAL_SPATIALITE=FALSE \
1763
+ -D CMAKE_BUILD_TYPE=MinSizeRel \
1764
+ -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_MAPSERVER=TRUE \
1766
1765
-D QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.dylib \
1767
1766
-D QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include \
1768
1767
..
@@ -1777,7 +1776,8 @@ path and version as required):
1777
1776
1778
1777
1779
1778
cmake -D CMAKE_INSTALL_PREFIX=~/Applications -D CMAKE_BUILD_TYPE=Release \
1780
- -D CMAKE_BUILD_TYPE=MinSizeRel -D WITH_INTERNAL_SPATIALITE=FALSE \
1779
+ -D CMAKE_BUILD_TYPE=MinSizeRel \
1780
+ -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_MAPSERVER=TRUE \
1781
1781
-D QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.dylib \
1782
1782
-D QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include \
1783
1783
-D GRASS_PREFIX=/user/local/grass-6.4.0 \
@@ -1796,7 +1796,8 @@ script and add arch flags to the configuration:
1796
1796
sudo chmod +x /usr/local/bin/python32
1797
1797
1798
1798
cmake -D CMAKE_INSTALL_PREFIX=~/Applications -D CMAKE_BUILD_TYPE=Release \
1799
- -D CMAKE_BUILD_TYPE=MinSizeRel -D WITH_INTERNAL_SPATIALITE=FALSE \
1799
+ -D CMAKE_BUILD_TYPE=MinSizeRel \
1800
+ -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_MAPSERVER=TRUE \
1800
1801
-D QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.dylib \
1801
1802
-D QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include \
1802
1803
-D CMAKE_OSX_ARCHITECTURES=i386 -D PYTHON_EXECUTABLE=/usr/local/bin/python32 \
0 commit comments