Results 1 to 3 of 3

Thread: Problem compiling Qt4.4.0 with mingw-static in examples/webkit

  1. #1
    Join Date
    Jan 2006
    Location
    Scandinavia
    Posts
    62
    Thanks
    5
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Problem compiling Qt4.4.0 with mingw-static in examples/webkit

    The compiler complains about 'undefined reference _imp___ZNK9QWebFrame6toHtmlEv'
    when compiling statically examples/webkit


    Anyone with an idea how to get past it?
    I found two other forums which unfortunately only discussed this problem in French and German

    1) http://forum.qtfr.org/viewtopic.php?pid=43046
    2) http://board.gulli.com/thread/111041...atisch-linken/

    ---- Se part of compile log below ----------
    tmp/obj/debug_static/previewer.o(.text+0x370): In function `ZN9Previewer24on_pre
    viewButton_clickedEv':
    C:/Qt/qt-mingw-4.4.0/examples/webkit/previewer/previewer.cpp:60: undefined refer
    ence to `_imp___ZN8QWebView7setHtmlERK7QStringRK4QUrl'
    tmp/obj/debug_static/previewer.o(.text$_ZN7Ui_Form7setupUiEP7QWidget[Ui_Form::se
    tupUi(QWidget*)]+0xd85):C:/Qt/qt-mingw-4.4.0/examples/webkit/previewer/previewer
    .cpp:61: undefined reference to `_imp___ZN8QWebViewC1EP7QWidget'
    tmp/obj/debug_static/previewer.o(.text$_ZN7Ui_Form7setupUiEP7QWidget[Ui_Form::se
    tupUi(QWidget*)]+0xe9d):C:/Qt/qt-mingw-4.4.0/examples/webkit/previewer/previewer
    .cpp:61: undefined reference to `_imp___ZN8QWebView6setUrlERK4QUrl'
    tmp/obj/debug_static/mainwindow.o(.text+0x1eb8): In function `ZN10MainWindow7ope
    nUrlEv':
    C:/Qt/qt-mingw-4.4.0/examples/webkit/previewer/mainwindow.cpp:153: undefined ref
    erence to `_imp___ZN8QWebView6setUrlERK4QUrl'
    tmp/obj/debug_static/mainwindow.o(.text+0x2607): In function `ZN10MainWindow14up
    dateTextEditEv':
    C:/Qt/qt-mingw-4.4.0/examples/webkit/previewer/mainwindow.cpp:183: undefined ref
    erence to `_imp___ZNK8QWebView4pageEv'
    tmp/obj/debug_static/mainwindow.o(.text+0x2618):C:/Qt/qt-mingw-4.4.0/examples/we
    bkit/previewer/mainwindow.cpp:183: undefined reference to `_imp___ZNK8QWebPage9m
    ainFrameEv'
    tmp/obj/debug_static/mainwindow.o(.text+0x262f):C:/Qt/qt-mingw-4.4.0/examples/we
    bkit/previewer/mainwindow.cpp:184: undefined reference to `_imp___ZNK9QWebFrame6
    toHtmlEv'
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [debug\previewer.exe] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/qt-mingw-4.4.0/examples/webkit/preview
    er'
    mingw32-make[1]: *** [debug-all] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/qt-mingw-4.4.0/examples/webkit/preview
    er'
    mingw32-make: *** [sub-previewer-make_default] Error 2

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem compiling Qt4.4.0 with mingw-static in examples/webkit

    You can't link webkit and phonon statically afaik. There was also a thread on qt-interest about this some time ago.

  3. #3
    Join Date
    Mar 2008
    Posts
    25
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem compiling Qt4.4.0 with mingw-static in examples/webkit

    have you added "QT += webkit" in the .pro file

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt with MinGW, compiling problem
    By nileshsince1980 in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2007, 09:00

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.