Skip to content

Commit

Permalink
Further tweaks to build script (thanks Martin!)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4482 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 6, 2006
1 parent 2431898 commit b9a1c6c
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions build.sh
@@ -1,19 +1,31 @@
#!/bin/bash
#
# A simple script to build QGIS
# Tim Sutton 2005
# Tim Sutton 2005-2006
# and Martin Dobias 2006
#
if [ ! $1 ]
then
echo "Usage: ${0} install_prefix"
echo "e.g."
echo "${0} \$HOME/apps/"
exit 1
fi
# disable default optimisations to improve debugging
export CXXFLAGS="-g -Wall"
export CFLAGS="-g -Wall"
export QTDIR=/usr/local/Trolltech/Qt-4.1.0/
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib
./autogen.sh --enable-debug --prefix=${1} --with-qtdir=$QTDIR --with-grass=/usr/lib/grass && make && make install
echo "Usage: ${0} install_prefix"
echo "e.g."
echo "${0} \$HOME/apps/"
exit 1
fi

AUTOGEN_FLAGS=

# for debug build:
# - disable default optimisations to improve debugging (omitting default -O2 flags)
# - show warnings
if [ x$2 = xdebug ]
then
AUTOGEN_FLAGS="--enable-debug"
export CFLAGS="-g -Wall"
export CXXFLAGS="-g -Wall"
fi

export QTDIR=/usr/local/Trolltech/Qt-4.1.0/
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib
./autogen.sh $AUTOGEN_FLAGS --prefix=${1} --with-qtdir=$QTDIR --with-grass=/usr/lib/grass && make && make install

0 comments on commit b9a1c6c

Please sign in to comment.