[vbox-dev] mandriva cooker x86_64 compilation tips

Maat maat-ml at vilarem.net
Wed Jan 17 20:24:21 GMT 2007


hi all,

i'm posting here after having been adviced to do so on irc

i tried to compile virtualbox on mdv x86_64 -- by the way i see that a
warning has been added to configure ;) --

and there are cases that current configure does not take in account :

With mandriva x86_64 QTDIR is /usr/lib/qt3 and QT lib dir is
/usr/lib/qt3/lib64

here under is a rather dirty patch for configure to give a better idea :

my2cents,
maat


Index: configure
===================================================================
--- configure   (révision 126)
+++ configure   (copie de travail)
@@ -51,7 +51,7 @@
 LIBZ="-lz"
 INCPNG=""
 LIBPNG="-lpng"
-QTDIR="/usr/qt/3 /usr/share/qt3"
+QTDIR="/usr/qt/3 /usr/share/qt3 /usr/lib/qt3"
 KBUILDDIR="`cd $(dirname $0); pwd`/kBuild"
 DEVDIR="`cd $(dirname $0); pwd`/tools"
 if [ -d /lib/modules/`uname -r`/build ]; then
@@ -830,6 +830,16 @@
         break
       fi
     fi
+    echo "using the following command line:" >> $LOG
+    echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"-I$q/include
-L$q/lib64 -lqt-mt\"" >> $LOG
+    $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/lib64
-lqt-mt >> $LOG 2>&1
+    if (($?==0)); then
+      if test_execute; then
+        cnf_append "QTDIR" `cd $q ; pwd`
+       found_qt=1
+       break
+      fi
+    fi
   done
   if (($found_qt!=1)); then
     echo -e "\n  Qt not found at \"$QTDIR\" or Qt headers not found"





More information about the vbox-dev mailing list