]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix problems with native qt caused by latest integrations
authorvsr <vsr@opencascade.com>
Fri, 23 Dec 2005 08:56:06 +0000 (08:56 +0000)
committervsr <vsr@opencascade.com>
Fri, 23 Dec 2005 08:56:06 +0000 (08:56 +0000)
config_files/qt-3.3.4.sh

index db297cd68874f43889d8e4302abc37a39eb7163b..dc281b8731cfc9e53ab64ff71490ed74a5adf499 100755 (executable)
@@ -26,7 +26,13 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
 
 # looks for the native product and collects it's environment (used by make_env())
 try_native(){
-qtdir="`find_in_path libqt-mt.so.3.3 /usr/share/qt3/lib`"
+qtdir=""
+if [ -d /usr/share/qt3/lib ] ; then
+    qtdir="`find_in_path libqt-mt.so.3.3 /usr/share/qt3/lib`"
+fi
+if [ -z "${qtdir}" ] && [ -d /usr/lib/qt3/lib ] ; then
+    qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib/qt3/lib`"
+fi
 if [ -z "${qtdir}" ] ; then
     qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib`"
 fi