Error during compiling the Qt 4.8.0 libraries
-
@c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fin
d -lwebcore
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fin
d -ljscore
collect2: ld returned 1 exit status
mingw32-make.exe[4]: *** [debug\tst_qwebframe.exe] Error 1
mingw32-make.exe[4]: Leaving directoryC:/qt-static/src/3rdparty/webkit/Source/ WebKit/qt/tests/qwebframe' mingw32-make.exe[3]: *** [debug-all] Error 2 mingw32-make.exe[3]: Leaving directory
C:/qt-static/src/3rdparty/webkit/Source/
WebKit/qt/tests/qwebframe'
mingw32-make.exe[2]: *** [sub-qwebframe-make_default] Error 2
mingw32-make.exe[2]: Leaving directoryC:/qt-static/src/3rdparty/webkit/Source/ WebKit/qt/tests' mingw32-make.exe[1]: *** [sub-WebKit-qt-tests-make_default-ordered] Error 2 mingw32-make.exe[1]: Leaving directory
C:/qt-static/src/3rdparty/webkit/Source'mingw32-make.exe: *** [sub-webkit-make_default-ordered] Error 2
C:\qt-static>@
I followed this 2 guides to develop a static build of the Qt 4.8.0:
- "How to build a static Qt version for Windows with GCC":http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc
- "Compile QT 4.8.0 with MinGW":http://binshi.typepad.com/blog/2012/01/compile-qt-480-with-mingw.html
I downloaded the file qt-everywhere-opensource-src-4.8.0.zip
I installed Perl (as discovered in the second link)
I installed MinGW with all stuff and added the bin folder to the PATH enviromentsThen I extracted the zip file to C:\ and renamed the folder to "qt-static"
I done the changes explained in the first link above at section: "Editing the config files for static build" and finally I done all steps in the next section of the guide.After about 4 hours of compiling, the compiler shows the error! :(
I try to recompile an older version, the Qt 4.7.0; same error!Where did I go wrong? Please help I'm a newbe of Qt!
-
Static build of webkit is not supported. You should call configure with -no-webkit. see the docs: http://doc.qt.nokia.com/4.7/platform-notes.html, that page has gone for 4.8 docs, unfortunately, but I'm pretty sure this holds true for that version too.
-
I have the same problem on qt-everywhere-opensource-src-4.8.0. But even I use shared build for embedded arm. It still happens.
My configure on QtEmbedded is as below:
./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vncIf I add “-no-webkit “ as below, it works. But I need uiloader and webkit at the same time.So, how do I do?
./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -no-webkit -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc