Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error during compiling the Qt 4.8.0 libraries

Error during compiling the Qt 4.8.0 libraries

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 4.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nidox
    wrote on last edited by
    #1

    @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 directory C:/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 directory C:/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:

    1. "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
    2. "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 enviroments

    Then 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!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nidox
        wrote on last edited by
        #3

        Perfect, I replaced the switch -webkit with -no-webkit, and has built it correctly! That guide should be updated ;)

        1 Reply Last reply
        0
        • W Offline
          W Offline
          Weilly
          wrote on last edited by
          #4

          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-vnc

          If 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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved