if [ -z "$QTDIR" ]; then
return 1
fi
-check_lib_version libqt-mt.so.3.0.5 ${QTDIR}/lib
-if [ "$?" -eq "0" ] ; then
+ver=`grep "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`
+if [ "$ver" == "3.0.5" ] ; then
return 0
fi
return 1
QT_FLAGS="-release -thread -shared -qt-gif -platform linux-g++"
### use system graphics libraries
-QT_FLAGS=$QT_FLAGS" -system-libpng -system-libjpeg -system-libmng"
+QT_FLAGS=$QT_FLAGS" -system-libpng -system-libjpeg -system-libmng -lpng -lmng -ljpeg"
### link also with Mesa if it is previously installed
if [ -n "$MESA_HOME" ]; then
QT_FLAGS=$QT_FLAGS" -I${MESA_HOME}/include/GL -L${MESA_HOME}/lib -L/usr/lib -lglide3"