Unsolved Qt4.8.6 How to compile webkit module
-
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 1Then 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 -
Hi,
You should add the -v option to see where the checks fail for QtWebKit.
-
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. -
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.