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"
27
#export CPPFLAGS=-I/sw/include
29
echo "Building without debug support"
30
AUTOGEN_FLAGS="--disable-debug"
31
export CFLAGS="-O2 -Wall"
32
export CXXFLAGS="-O2 -Wall"
34
#export CPPFLAGS=-I/sw/include
39
echo "Building with qgis statically linked to dependencies"
40
#this is to tell linker to statically linke
41
#against deps like gdal etc - useful for
42
#trying to build a distributeable binary of qgis
43
export LDFLAGS=-static
46
#qt installed from source
47
#export QTDIR=/usr/local/Trolltech/Qt-4.1.0
48
#qt installed from debian apt
50
export QTDIR=/usr/local/Trolltech/Qt-4.2.0-rc1
51
#export QTDIR=/usr/local/Trolltech/Qt-4.1.4
52
#export PATH=/usr/local/gislibs/bin:/usr/local/graphicslibs/bin/:$QTDIR/bin:$PATH
53
export LD_LIBRARY_PATH=$QTDIR/lib
55
# Note: --enable-static=no tells compiler
56
# 'dont build static versions of qgis .o files'
57
# This only applies to qgis interal libs and speeds
58
# up the compilation process. See discussion on
59
# http://logs.qgis.org/slogs/%23qgis.2006-04-15.log at 17:06:10
60
# for additional details
61
./autogen.sh $AUTOGEN_FLAGS --prefix=${1} \
65
#--with-grass=/usr/local/gislibs/grass