Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt4.8.6 How to compile webkit module
Forum Update on Monday, May 27th 2025

Qt4.8.6 How to compile webkit module

Scheduled Pinned Locked Moved Unsolved Qt WebKit
4 Posts 2 Posters 1.8k Views
  • 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.
  • X Offline
    X Offline
    xiaoma
    wrote on last edited by
    #1

    Hello, my program has some problems. When I compile my program, the program cannot compile and display: tmp/ui_MainForm.h:35:29: fatal error:
    QtWebKit/QWebView: No such file or directory
     #include <QtWebKit/QWebView>
                                 ^
    Compilation terminated.
    Makefile:450: recipe for target 'tmp/MainForm.o' failed
    Make: *** [tmp/MainForm.o] Error 1

    Then I found that my qt did not compile the webkit module, and the qt installation directory /usr/local/Trolltech/Qt-4.8.6/include (the default installation path) found that there is no QtWebKit file, then I am ready to recompile qt, but when I type ./configure to always show:
    Qt 3 compatibility ..... yes
    QtDBus module .......... no
    QtConcurrent code ...... yes
    QtGui module ........... yes
    QtScript module ........ yes
    QtScriptTools module ... yes
    QtXmlPatterns module ... no
    Phonon module .......... no
    Multimedia module ...... auto
    SVG module ............. yes
    WebKit module .......... no
    The webkit module always shows no, I don't know how to make it display yes, I found a lot of information on the Internet telling me to install some dependencies, I have installed it now.
    Sudo apt-get install libxrender-dev
    Sudo apt-get install libx11-dev libxext-dev libxtst-dev
    But they don't seem to work, I also tried ./configure -webkit, the result is still WebKit module .......... no

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add the -v option to see where the checks fail for QtWebKit.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xiaoma
        wrote on last edited by
        #3

        Thank you
        I changed my ubuntu compiler to gcc4, then installed all libxxx-dev, then modified configure, the webkit module finally showed yes! But I found that qt4.8.6 plus -static can't compile webkit, I need to change the qt version.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should update Qt in any case however that won't change anything for QtWebKit. The module does not compile in static mode because of its underlying dependencies.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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