Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further tweaks to build script (thanks Martin!)
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|