3
# A simple script to build QGIS
5
# and Martin Dobias 2006
9
echo "Usage: ${0} install_prefix"
11
echo "${0} \$HOME/apps/"
18
# - disable default optimisations to improve debugging (omitting default -O2 flags)
22
echo "Building with debug support"
23
AUTOGEN_FLAGS="--enable-debug"
24
export CFLAGS="-g -Wall"
25
export CXXFLAGS="-g -Wall"
30
echo "Building with qgis statically linked to dependencies"
31
#this is to tell linker to statically linke
32
#against deps like gdal etc - useful for
33
#trying to build a distributeable binary of qgis
34
export LDFLAGS=-static
37
#qt installed from source
38
#export QTDIR=/usr/local/Trolltech/Qt-4.2.2
39
#export QTDIR=/opt/omg_linux_bundle/usr/
41
#qt installed from debian apt
43
export PATH=$QTDIR/bin:$PATH
44
export LD_LIBRARY_PATH=$QTDIR/lib
46
# Note: --enable-static=no tells compiler
47
# 'dont build static versions of qgis .o files'
48
# This only applies to qgis interal libs and speeds
49
# up the compilation process. See discussion on
50
# http://logs.qgis.org/slogs/%23qgis.2006-04-15.log at 17:06:10
51
# for additional details
52
export PATH=/opt/omg_linux_bundle/usr/bin/:$PATH
53
./autogen.sh $AUTOGEN_FLAGS --prefix=${1} \
56
--with-gsl=/opt/omg_linux_bundle/usr/bin/gsl-config \
57
--with-gdal=/opt/omg_linux_bundle/usr/ \
58
--with-projdir=/opt/omg_linux_bundle/usr/ \
59
--with-gdal=/opt/omg_linux_bundle/usr/bin/gdal-config \
61
--with-grass=/usr/lib/grass && make && make install
62
##--enable-unittests \