WebKit is "gone"
-
We've built Qt 5 (GA) from source, in the process of upgrading our App from 4.7.4 to 5.0
configuration:
@./configure -nomake tests -nomake demos -nomake examples @Our project file had:
@QT += core gui network webkit@This worked for Qt 4.7.4
building under Qt 5.0 brings the following problem:
@Project ERROR: Unknown module(s) in QT: webkit @
What can we do to correct this? We have the commercial version of Qt 5.
-
Be aware that WebKit1 which depends on QtWidgets is now webkitwidgets as hari already pointed out. webkit is now WebKit2 which depends on QtGui only.
Nonetheless there should be a webkit module.
Did you actually compile WebKit (see if <code>mkspecs/modules/qt_lib_webkit.pri</code> is present)?
Be aware that WebKit requires ICU and Ruby to be compiled. If they are not present WebKit is not built.
-
Nothing works. Not webkit, not webkitwidgets, not Webkit2. All give a "module not found".
The scary thing is that when I load the webkit example "browser" or "fancy browser", the line:
@Qt+= webkitwidgets network widgets printsupport@
works fine.
But the same "webkitwidgets" in my old project doesn't work (module not found).
Both projects work with qt5. I can't understand why those projects are different. Why is "webkitwidgets" not found as a module on my project while it's found on the "fancyBrowser" project?
I verified 500 times that I am actively using qt5 to build both projects.
this is becoming a nightmare.
-
no! that's the weird part. it does not work with a clean .pro file.
There's somehting else other than the .pro file and the .pro.userthis is driving me nuts.
I have QtCreator with two projects open in it. The "FancyBrowser" examples builds and works. my clean file fails with no module found for "webkitwidgets".
Both project use the latest Qt 5 I built from git.
-
Just one more possibility and thought
Do you have multiple copies of Qt?
For example, In my Linux system, I have multiple copies of Qt (4.8.3, Qt5-Alpha, Beta and full release) in my home directory.
If so, Probably, when you use full project, its using a right Qmake and QMAKESPEC and when you just go the that particular directory and build, it takes some other? -
[quote author="hari" date="1357700517"]Just one more possibility and thought
Do you have multiple copies of Qt?
For example, In my Linux system, I have multiple copies of Qt (4.8.3, Qt5-Alpha, Beta and full release) in my home directory.
If so, Probably, when you use full project, its using a right Qmake and QMAKESPEC and when you just go the that particular directory and build, it takes some other?[/quote]
very possible ! in Qt-Creator, setup Qt versions and toolchains can avoid this problem ,make a shadow build , check whether everything goes ok.
-
Hello,
I have exactly the same problem and I also have multiple Qt versions installed. One is Qt4 from debian repositories (required by skype) and the other one 5.3 installed manually (so maybe it's some path issue). I can build with normal qmake but the fail occurs when I try to build for android with:
QT_INSTALL_DIR/5.3/android_armv7/bin/qmake
Anything I can do about it?
Thanks a lot for Qt :-)
-
This "Unknown module" message may mean that you didn't build QtWebKit. The browser example might be working because it's finding the QtWebKit library elsewhere, from another build that you might have.
I suggest you follow the instructions on https://trac.webkit.org/wiki/QtWebKit and, after everything is set, try building Qt again. You'll notice if it's building QtWebKit because it'll take much longer to finish :)