|
| 1 | +#!/bin/sh |
| 2 | +export PATH=/home/user/win/qt4.1_win/bin:$PATH |
| 3 | +export LD_LIBRARY_PATH=/home/user/win/qt4.1_win/lib:$LD_LIBRARY_PATH |
| 4 | +export QTDIR=$WIN/qt-4.1_win |
| 5 | + |
| 6 | +# added by gsherman to enable ccache |
| 7 | +#export CC='ccache gcc' |
| 8 | +#export CXX='ccache g++' |
| 9 | + |
| 10 | +export QT_CFLAGS="-DQT_SHARED -I/home/user/win/qt4.1_win/include -I/home/user/win/qt4.1_win/include/QtCore -I/home/user/win/qt4.1_win/include/QtGui -I/home/user/win/qt4.1_win/include/Qt3Support -I/home/user/win/qt4.1_win/include/QtNetwork -I/home/user/win/qt4.1_win/include/QtXml -I/home/user/win/qt4.1_win/include/QtSvg -I/home/user/win/qt4.1_win/include/QtSql -I/home/user/win/qt4.1_win/include/QtTest" |
| 11 | +export QT_LIBS="-L/home/user/win/qt4.1_win/lib -lQtNetwork -lQtSvg -lQtXml -lQtGui -lQtSql -lQt3Support -lQtCore -lQtTest" |
| 12 | + |
| 13 | +#export QT_LIBS="-L/home/user/win/qt4.1_win/lib" |
| 14 | +#export QT_LDADD="-L/home/user/win/qt4.1_win/lib -lQtNetwork -lQtSvg -lQtXml -lQtGui -lQtSql -lQt3Support -lpthread -lQtTest -lQtCore" |
| 15 | + |
| 16 | +#checking for QT_CFLAGS... -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg |
| 17 | +#checking for QT_LIBS... -L/home/holl/software/qt4-x11-4.1.0/lib -L/usr/X11R6/lib -lQt3Support -lQtSql -lQtNetwork -lQtSvg -lQtXml -lQtGui -laudio -lXt -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lXext -lX11 -lQtTest -lQtCore -lfontconfig -lz -lm -ldl -lpthread |
| 18 | +#checking for QT_TEST_LIBS... -L/home/holl/software/qt4-x11-4.1.0/lib -lQtTest -lQtCore -lfontconfig -lz -lm -ldl -lpthread |
| 19 | +#checking QT_CXXFLAGS... -DQT3_SUPPORT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest |
| 20 | +#checking QT_LDADD... -L/home/holl/software/qt4-x11-4.1.0/lib -L/usr/X11R6/lib -lQt3Support -lQtSql -lQtNetwork -lQtSvg -lQtXml -lQtGui -laudio -lXt -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lXext -lX11 -lQtTest -lQtCore -lfontconfig -lz -lm -ldl -lpthread |
| 21 | + |
| 22 | + |
| 23 | +./autogen.sh \ |
| 24 | +--with-qt-pkg-config=no \ |
| 25 | +--prefix=$WIN/i586-mingw32msvc \ |
| 26 | +--target=$TARGET \ |
| 27 | +--host=$TARGET \ |
| 28 | +--build=i386-linux \ |
| 29 | +--with-qtdir=$WIN/qt-4.1_win \ |
| 30 | +--with-projdir=$WIN/i586-mingw32msvc \ |
| 31 | +--with-gdal=$WIN/i586-mingw32msvc/bin/gdal-config \ |
| 32 | +--with-geos=$WIN/i586-mingw32msvc/bin/geos-config \ |
| 33 | +--with-sqlite3dir=$WIN/i586-mingw32msvc \ |
| 34 | +--with-gsl=$WIN/i586-mingw32msvc/bin/gsl-config \ |
| 35 | +--with-grass=$WIN/i586-mingw32msvc/grass-6.1.cvs \ |
| 36 | +--with-postgresql |
| 37 | + |
| 38 | +#./configure \ |
| 39 | +#--with-qt-pkg-config=no \ |
| 40 | +#--prefix=$WIN/i586-mingw32msvc \ |
| 41 | +#--target=$TARGET \ |
| 42 | +#--host=$TARGET \ |
| 43 | +#--build=i386-linux \ |
| 44 | +#--with-qtdir=$WIN/qt-4.1_win \ |
| 45 | +#--with-projdir=$WIN/i586-mingw32msvc \ |
| 46 | +#--with-gdal=$WIN/i586-mingw32msvc/bin/gdal-config \ |
| 47 | +#--with-geos=$WIN/i586-mingw32msvc/bin/geos-config \ |
| 48 | +#--with-sqlite3dir=$WIN/i586-mingw32msvc \ |
| 49 | +#--with-gsl=$WIN/i586-mingw32msvc/bin/gsl-config \ |
| 50 | +#--with-grass=$WIN/i586-mingw32msvc/grass-6.1.cvs \ |
| 51 | +#--with-postgresql |
| 52 | + |
| 53 | + |
| 54 | +# build the beast |
| 55 | +#~/bin/winmake -f Makefile.win |
| 56 | + |
0 commit comments