Re: [Php-qt-users] Can't compile on OS X
Status: Beta
Brought to you by:
tm243
From: Thomas M. <tm...@ph...> - 2007-02-22 07:22:54
|
Hi Carlo, can you find any of these files on your system?: libQtCore.so libQtCore.so.4 libQtCore.so.4.2 libQtCore.so.4.2.2 Usually they should be in /usr/local/Trolltech/Qt-4.2.2/lib for you. If yes, just send me your generated trunk/build/smoke/qt/qtguess.pl file. On Thursday, 22. February 2007 02:57, Carlo Cabanilla wrote: > Hi, I'm having trouble compiling php-qt on Mac OS X 10.4.8, PPC. > > I checked out the latest version of the source (rev 294) and ran this > from trunk/build (I have non-standard locations for Qt and php): > > cmake -DQT_INCLUDE_DIR=3D/usr/local/Trolltech/Qt-4.2.2/include \ > -DQT_LIBRARY_DIR=3D/usr/local/Trolltech/Qt-4.2.2/lib \ > -DPHP5_INCLUDE_PATH=3D/usr/local/src/php-5.2.0/main \ > -DPHP5_EXECUTABLE=3D/usr/local/apache2/php/bin \ > -DPHP5_CONFIG_EXECUTABLE=3D/usr/local/apache2/php/bin/php-config .. > > Which seems to work, because I don't get any errors: > > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Check size of void* > -- Check size of void* - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Looking for Q_WS_X11 > -- Looking for Q_WS_X11 - not found. > -- Looking for Q_WS_MAC > -- Looking for Q_WS_MAC - found > -- Looking for Q_WS_WIN > -- Looking for Q_WS_WIN - not found. > -- Found Qt-Version 4.2.2 > -- Looking for pthread.h > -- Looking for pthread.h - found > -- Looking for pthread_create in pthreads > -- Looking for pthread_create in pthreads - not found > -- Looking for pthread_create in pthread > -- Looking for pthread_create in pthread - found > -- /usr/local/apache2/php/include/php/main > -- Found PHP5-Version 5.2.0 > > -- Configuring done > -- Generating done > -- Build files have been written to: > /usr/local/src/php-5.2.0/ext/php_qt/trunk/build > > > > > But when I run make, I get the following: > > [ 3%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp, x_4.cpp, > x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp, x_11.cpp, > x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp, x_17.cpp, x_18.cpp, > x_19.cpp, x_20.cpp > Checking how Qt was built... > Threshold is set to 10 > Number of defines to be tested : 45/78 > > Failed to run /usr/bin/c++ -E -D__cplusplus -dM > -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore > /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qglobal.h 2>/dev/null. > Trying without __cplusplus (might be already defined) > Trying to compile and link a small program... > FAILED : check your configuration. > Failed program was: > > #include <QtGui/qapplication.h> > int main( int argc, char **argv ) > { > QApplication foo( argc, argv ); > return 0; > } > > Compiled with: > /usr/bin/c++ -I/usr/local/Trolltech/Qt-4.2.2/include/QtTest > -I/usr/local/Trolltech/Qt-4.2.2/include/QtUiTools > -I/usr/local/Trolltech/Qt-4.2.2/include/QtSvg > -I/usr/local/Trolltech/Qt-4.2.2/include/QtXml > -I/usr/local/Trolltech/Qt-4.2.2/include/QtSql > -I/usr/local/Trolltech/Qt-4.2.2/include/QtOpenGL > -I/usr/local/Trolltech/Qt-4.2.2/include/QtNetwork > -I/usr/local/Trolltech/Qt-4.2.2/include/QtDesigner > -I/usr/local/Trolltech/Qt-4.2.2/include/QtDesigner > -I/usr/local/Trolltech/Qt-4.2.2/include/QtAssistant > -I/usr/local/Trolltech/Qt-4.2.2/include/Qt3Support > -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui > -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore > -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/default > -I/usr/local/Trolltech/Qt-4.2.2/include/Qt > -I/usr/local/Trolltech/Qt-4.2.2/include > -L/usr/local/Trolltech/Qt-4.2.2/lib -o ./8191-qtguess > ./8191-qtguess.cpp -lQtCore -lQtGui > Compiler output: > /usr/bin/ld: can't locate file for: -lQtCore > collect2: ld returned 1 exit status > > make[2]: *** [smoke/qt/smokedata.cpp] Error 1 > make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2 > make: *** [all] Error 2 > > > Can someone help? > > > > .Carlo > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Php-qt-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-qt-users =2D-=20 Thomas |