Cannot find QtCore lib when builds Qt-4.8.0
-
I got the following error MSG while compiling Qt-4.8.0 . on ubuntu.
I think QtCore lib must be released with this QT4.8.0 software package ,so why the building process itself cannot find this lib?
Is there any configuration options i did not chose before building?make[1]: Entering directory
/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/src/xml' rm -f libQtXml.so.4.8.0 libQtXml.so libQtXml.so.4 libQtXml.so.4.8 g++ -Wl,-rpath-link,/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -shared -Wl,-soname,libQtXml.so.4 -o libQtXml.so.4.8.0 .obj/release-shared/qdom.o .obj/release-shared/qxml.o -L/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -lQtCore -L/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -lpthread /usr/bin/ld: cannot find -lQtCore collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtXml.so.4.8.0] Error 1 make[1]: Leaving directory
/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/src/xml'
make: *** [sub-xml-make_default-ordered] Error 2 -
Depends. If you've got some other Qt (qmake) in PATH, this will be used.
If you want to (you should want to do that) you should build qmake before building Qt itself, and then use this new qmake to build the library. Usually, configure script takes care of that for you. Then again, you have to set your environment so that make sees this qmake.
Look into readme in source, or take a look at this *aimed at Qt5, but may help): "link":http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git.
-
There really exist a qmake-2.6.2 under /usr/bin on my system.
I will then take your steps to rebuild QT. Thanks.
[quote author="sierdzio" date="1325745010"]Depends. If you've got some other Qt (qmake) in PATH, this will be used. If you want to (you should want to do that) you should build qmake before building Qt itself, and then use this new qmake to build the library. Usually, configure script takes care of that for you. Then again, you have to set your environment so that make sees this qmake. Look into readme in source, or take a look at this *aimed at Qt5, but may help): "link":http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git.[/quote]