What does "qmake -query QT_INSTALL_LIBS" give you? Do you even have a /usr/lib/libQtCore.so? Or something like that?
Clint On Wednesday 05 November 2008 9:36:45 am Serhii Piddubchak wrote: > Hello, I'm using OpenSUSE 11.0 and trying to build software that uses QT. > I have QT and QT-devel packages installed but CMake says it Can't find > QtCore. I've posted a question about this to a project's forum here: > > http://www.hedgewars.org/forum/viewtopic.php?id=648 > > They said it could be a CMake bug. > Here is the log(versions of cmake and qt are included): > > [EMAIL PROTECTED]:~/builds> tar jxf ~/downloads/hedgewars-src-0.9.7.tar.bz2 > [EMAIL PROTECTED]:~/builds> cd hedgewars-src-0.9.7/ > [EMAIL PROTECTED]:~/builds/hedgewars-src-0.9.7> cmake . > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Looking for Q_WS_X11 > -- Looking for Q_WS_X11 - found > -- Looking for Q_WS_WIN > -- Looking for Q_WS_WIN - not found. > -- Looking for Q_WS_QWS > -- Looking for Q_WS_QWS - not found. > -- Looking for Q_WS_MAC > -- Looking for Q_WS_MAC - not found. > CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:788 (MESSAGE): > Could NOT find QtCore. Check > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeError.log for > more details. > Call Stack (most recent call first): > QTfrontend/CMakeLists.txt:11 (find_package) > > > -- Configuring incomplete, errors occurred! > [EMAIL PROTECTED]:~/builds/hedgewars-src-0.9.7> cmake --version > cmake version 2.6-patch 2 > [EMAIL PROTECTED]:~/builds/hedgewars-src-0.9.7> cat > CMakeFiles/CMakeError.log Determining if the Q_WS_WIN exist failed with the > following output: Change Dir: > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp > > Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > gmake[1]: Entering directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > /usr/bin/cmake -E cmake_progress_report > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CMakeFiles > 1 > Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o > /usr/bin/gcc -o > CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: In function 'main': > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: 'Q_WS_WIN' undeclared (first use in this function) > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: (Each undeclared identifier is reported only once > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: for each function it appears in.) > gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error > 1 gmake[1]: Leaving directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > gmake: *** [cmTryCompileExec/fast] Error 2 > > File > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: /* */ > #include <QtCore/qglobal.h> > > void cmakeRequireSymbol(int dummy,...){(void)dummy;} > int main() > { > #ifndef Q_WS_WIN > cmakeRequireSymbol(0,&Q_WS_WIN); > #endif > return 0; > } > > Determining if the Q_WS_QWS exist failed with the following output: > Change Dir: /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp > > Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > gmake[1]: Entering directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > /usr/bin/cmake -E cmake_progress_report > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CMakeFiles > 1 > Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o > /usr/bin/gcc -o > CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: In function 'main': > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: 'Q_WS_QWS' undeclared (first use in this function) > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: (Each undeclared identifier is reported only once > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: for each function it appears in.) > gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error > 1 gmake[1]: Leaving directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > gmake: *** [cmTryCompileExec/fast] Error 2 > > File > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: /* */ > #include <QtCore/qglobal.h> > > void cmakeRequireSymbol(int dummy,...){(void)dummy;} > int main() > { > #ifndef Q_WS_QWS > cmakeRequireSymbol(0,&Q_WS_QWS); > #endif > return 0; > } > > Determining if the Q_WS_MAC exist failed with the following output: > Change Dir: /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp > > Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > gmake[1]: Entering directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > /usr/bin/cmake -E cmake_progress_report > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CMakeFiles > 1 > Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o > /usr/bin/gcc -o > CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: In function 'main': > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: 'Q_WS_MAC' undeclared (first use in this function) > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: (Each undeclared identifier is reported only once > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c:8: error: for each function it appears in.) > gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error > 1 gmake[1]: Leaving directory > `/home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp' > gmake: *** [cmTryCompileExec/fast] Error 2 > > File > /home/dusoft/builds/hedgewars-src-0.9.7/CMakeFiles/CMakeTmp/CheckSymbolExis >ts.c: /* */ > #include <QtCore/qglobal.h> > > void cmakeRequireSymbol(int dummy,...){(void)dummy;} > int main() > { > #ifndef Q_WS_MAC > cmakeRequireSymbol(0,&Q_WS_MAC); > #endif > return 0; > } > [EMAIL PROTECTED]:~/builds/hedgewars-src-0.9.7> qmake --version > QMake version 2.01a > Using Qt version 4.4.0 in /usr/lib _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
