Results 1 to 9 of 9

Thread: Qt Opensource 4.5.2 wont compile

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Qt Opensource 4.5.2 wont compile

    Hi to all!
    I am trying to compile Qt Opensource 4.5.2 and after:
    Qt Code:
    1. configure -debug-and-release
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. mingw32-make all
    To copy to clipboard, switch view to plain text mode 
    I get:
    Qt Code:
    1. Creating library file: d:\Qt\2009.03\qt\lib\libQtWebKitd4.a
    2. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    3. 14c): undefined reference to `vtable for WebCore::FormDataIODevice'
    4. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    5. 2a4): undefined reference to `vtable for WebCore::FormDataIODevice'
    6. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    7. 3e8): undefined reference to `vtable for WebCore::FormDataIODevice'
    8. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    9. 50c): undefined reference to `vtable for WebCore::FormDataIODevice'
    10. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    11. 630): undefined reference to `vtable for WebCore::FormDataIODevice'
    12. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    13. d8e): undefined reference to `vtable for WebCore::QNetworkReplyHandler'
    14. ./tmp\obj\debug_shared\QNetworkReplyHandler.o:QNetworkReplyHandler.cpp:(.text+0x
    15. 10a0): undefined reference to `vtable for WebCore::QNetworkReplyHandler'
    16. ./tmp\obj\debug_shared\FrameLoaderClientQt.o:FrameLoaderClientQt.cpp:(.text+0x4e
    17. 58): undefined reference to `QWebPage::unsupportedContent(QNetworkReply*)'
    18. ./tmp\obj\debug_shared\FrameLoaderClientQt.o:FrameLoaderClientQt.cpp:(.text+0x61
    19. 1a): undefined reference to `QWebPage::downloadRequested(QNetworkRequest const&)
    20. '
    21. collect2: ld returned 1 exit status
    22. mingw32-make[2]: *** [..\..\..\..\lib\QtWebKitd4.dll] Error 1
    23. mingw32-make[2]: Leaving directory `D:/Qt/2009.03/qt/src/3rdparty/webkit/WebCore
    24. '
    25. mingw32-make[1]: *** [debug-all] Error 2
    26. mingw32-make[1]: Leaving directory `D:/Qt/2009.03/qt/src/3rdparty/webkit/WebCore
    27. '
    28. mingw32-make: *** [sub-webkit-all-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 
    What is wrong?
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt Opensource 4.5.2 wont compile

    Quote Originally Posted by MarkoSan View Post
    Hi to all!
    I am trying to compile Qt Opensource 4.5.2 and after:
    Qt Code:
    1. configure -debug-and-release
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. mingw32-make all
    To copy to clipboard, switch view to plain text mode 
    Well my Linux port says:

    -debug-and-release Compile and link two versions of Qt, with and without debugging turned on (Mac only).
    And I guess you work under windows.

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt Opensource 4.5.2 wont compile

    OK, but howcome it did work in previous version of Qt, changelog does not mention anything about this feature under windows disabled.
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Opensource 4.5.2 wont compile

    When i compile Qt i disable Webkit compilation, because I now that i won't use it. I don't if Webkit is necessary for you, but if it is not, then just disable it.
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt Opensource 4.5.2 wont compile

    The problem is that I NEED webkit, any ideas?
    Qt 5.3 Opensource & Creator 3.1.2

  6. #6
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Opensource 4.5.2 wont compile

    Have you ever compiled webkit successfully?

    configure's help says
    Qt Code:
    1. -webkit ............ Compile in the WebKit module (WebKit is built if a decent C++ compiler is used.)
    To copy to clipboard, switch view to plain text mode 

    MinGW's g++ is not decent. Just like with phonon, there is no easy way to do this.

    Qt Centre's wiki has an article describing some magic of building phonon with MinGW. You need to find smth like this for Webkit.
    I'm a rebel in the S.D.G.

  7. #7
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt Opensource 4.5.2 wont compile

    In previous version of Qt (4.5.1) I've built WebKit without any problems using IDENTICAL mingw (same version). Do you have a link to workaround you've mentioned?
    Qt 5.3 Opensource & Creator 3.1.2

  8. #8
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Opensource 4.5.2 wont compile

    It is here http://wiki.qtcentre.org/index.php?t...ws_using_MinGW

    Sorry then, I have no idea how to solve this problem. =(
    I'm a rebel in the S.D.G.

  9. #9
    Join Date
    Feb 2008
    Posts
    6
    Thanked 1 Time in 1 Post

    Default Re: Qt Opensource 4.5.2 wont compile

    Cause:
    src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/moc_QNetworkReplyHandler.cpp being empty after moc fails to generate it properly.

    Workaround:
    delete src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/mocinclude.tmp and rerun make, which will trigger moc to rerun and generate the file correctly before continuing the build.

    Credit: solution found here --> http://lists.trolltech.com/pipermail...er/013495.html

  10. The following user says thank you to ironstorm for this useful post:

    eclarkso (24th December 2009)

Similar Threads

  1. Compile problem: Qt4.5.1 opensource, VisualStudio 2008 Standard
    By wally in forum Installation and Deployment
    Replies: 2
    Last Post: 28th May 2009, 15:42
  2. how to compile c++ source file in qtCreator
    By orky7 in forum General Programming
    Replies: 6
    Last Post: 20th March 2009, 06:45
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.