Skip to content
Browse files
Updated build directions for (debian based) linux
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 27, 2007
1 parent 7ae5513 commit 0179e66732c71fd41c29080a783d59fbcf5e0f18
Showing with 35 additions and 12 deletions.
  1. +35 −12 INSTALL.t2t
@@ -1,4 +1,4 @@
Compiling QGIS From Source
/ompiling QGIS From Source
Tim Sutton 2007
%!encoding: iso-8859-1

@@ -570,7 +570,7 @@ make install

== Building QGIS with Qt4.x ==

***Requires:*** Ubuntu Edgy
***Requires:*** Ubuntu Edgy / Debian derived distro

These notes are for if you want to build QGIS from source. One of the major
aims here is to show how this can be done using binary packages for ***all***
@@ -606,7 +606,7 @@ sudo apt-get update
== Install Qt4 ==

sudo apt-get install libqt4-core libqt4-debug libqt4-debug-dev \
sudo apt-get install libqt4-core libqt4-debug \
libqt4-dev libqt4-gui libqt4-qt3support libqt4-sql lsb-qt4 qt4-designer \
qt4-dev-tools qt4-doc qt4-qtconfig uim-qt gcc libapt-pkg-perl resolvconf
@@ -651,11 +651,12 @@ above commands to select the Qt4 version of the relevant applications.

sudo apt-get install gdal-bin libgdal1-dev libgeos-dev proj libtool \
libgdal-doc libhdf4g-dev libhdf4g-run autoconf2.13 automake1.9 python-dev \
libgdal-doc libhdf4g-dev libhdf4g-run python-dev \
swig libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion gsl-bin \
libsqlite3-dev sqlite3 ccache make libpq-dev flex bison firefox
libsqlite3-dev sqlite3 ccache make libpq-dev flex bison

/!\ Debian users should use libgdal-dev above rather

== GRASS Specific Steps ==

@@ -668,6 +669,8 @@ Now you can install grass from dapper:
sudo apt-get install grass libgrass-dev libgdal1-grass

/!\ You may need to explicitly state your grass version e.g. libgdal1-1.3.2-grass

== Setup ccache (Optional) ==

You should also setup ccache to speed up compile times:
@@ -740,15 +743,35 @@ development version. I suggest you do something similar:
mkdir -p ${HOME}/apps

The script will carry on to build QGIS - it may take a little while to go
and have a cup of your favourite beverage while you wait...
Now we create a build directory and run ccmake:

== Running QGIS ==
cd qgis
mkdir build
ccmake ..

Once the compile is complete it should pop up a page in firefox with unit
test results. At the time of writing the unit tests are just stubs - we
still need to create the test implementations - so dont worry to much about
their output at the moment.
When you run ccmake (note the .. is required!), a menu will appear where
you can configure various aspects of the build. If you do not have root
access or do not want to overwrite existing QGIS installs (by your
packagemanager for example), set the CMAKE_BUILD_PREFIX to somewhere you
have write access to (I usually use /home/timlinux/apps). Now press
'c' to configure, 'e' to dismiss any error messages that may appear.
and 'g' to generate the make files. Note that sometimes 'c' needs to
be pressed several times before the 'g' option becomes available.
After the 'g' generation is complete, press 'q' to exit the ccmake
interactive dialog.

Now on with the build:

make install

It may take a little while to build depending on your platform.

== Running QGIS ==

Now you can try to run QGIS:

0 comments on commit 0179e66

Please sign in to comment.