if [ -z "$QTDIR" ]; then
return 1
fi
-check_lib_version libqt-mt.so.3.3.3 ${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.3.3" ] ; then
return 0
fi
return 1
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
<tr>
<td>Qt 3.0.5</td>
<td>existence of QTDIR <br>
- existence of libqt-mt.so.3.0.5</td>
+ ver=`grep "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`</td>
<td>set QTDIR if you have preinstalled version of qt</td>
- <td>We try to find libqt-mt.so.3.0.5 in ${QTDIR}/lib folder. <br>
+ <td>Qt's qglobal.h file provides version information: ver should be 3.0.5.<br>
You should set MESA_HOME only if you have preinstalled version of Mesa
3.4.2. <br>
It is recommended to use native Qt on Linux RedHat 8.0</td>