Have you set the correct Qt version in Tools->Options->Qt4? Eirik
Adam Majer skrev: > Using Linux with Qt Creator 1.2.1. I get the following error when trying > to compile with a custom Qt library. > > g++ -m64 -Wl,-rpath ../lib -o gui build/obj/main.o > build/obj/main_window.o build/obj/moc_main_window.o -L../lib > -L../db/interfaces -L../../lib/qt4 > -L/var/tmp/qt/qt-x11-commercial-src-4.5.2/lib -ldb -lgalsoft-gui > -lgalsoft-core -lQtGui -L/var/tmp/qt/qt-x11-commercial-src-4.5.2/lib > -L/usr/X11R6/lib64 -pthread -lpng -lfreetype -lgobject-2.0 -lSM -lICE > -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lz -lm > -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread > > /usr/lib64/libQtNetwork.so.4: undefined reference to > `QObjectPrivate::checkWindowRole()' > > /usr/lib64/libQtNetwork.so.4: undefined reference to > `QDataStream::QDataStream(QByteArray*, int)' > > collect2: ld returned 1 exit status > make[1]: *** [gui] Error 1 > make: *** [debug] Error 2 > > > Now, executing exactly the same command in terminal works. From the > error, the wrong Qt is being linked from Qt Creator. > > Whether I have "Clean System Environment" set or not does not matter. > > > Fixed the problem by adding LD_LIBRARY_PATH=/var/tmp/qt/qt/lib to the > project. > > Shouldn't this path be added automatically during build? > > - Adam > > _______________________________________________ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator