WebKit is "gone"
-
wrote on 7 Jan 2013, 21:02 last edited by
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.
-
wrote on 8 Jan 2013, 06:12 last edited by
When I wanted to build project with WebView, got similar error. Looking at other examples (QtTestBrowser), i changed to "webkitwidgets" and got it working.
-
wrote on 8 Jan 2013, 08:03 last edited by
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.
-
wrote on 8 Jan 2013, 17:13 last edited by
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.
-
wrote on 8 Jan 2013, 18:26 last edited by
Have you tried deleting the <code>.pro.user</code> file and reconfiguring your project in QtCreator?
-
wrote on 8 Jan 2013, 19:15 last edited by
Yes, I did delete the pro.user file and reconfigured my project in QtCreator. Still same effect: none of the combinations for naming Webkit including "webkitwidgets" will yield anything other than "Module not found".
-
wrote on 8 Jan 2013, 19:46 last edited by
Does it work with a small, but clean <code>.pro</code> file?
@
QT += webkitwidgets
@ -
wrote on 8 Jan 2013, 19:49 last edited by
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.
-
wrote on 8 Jan 2013, 21:37 last edited by
[quote author="ronM71" date="1357678277"]I don't get this.[/quote]Me neither. ;-) Let's try to narrow this down further.
Does it work from a terminal (outside of QtCreator), so <code>> qmake small-but-clean.pro</code>?
-
wrote on 9 Jan 2013, 03:01 last edited by
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? -
wrote on 10 Jan 2013, 04:07 last edited by
[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.
-
wrote on 25 May 2014, 01:21 last edited by
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 :-)
-
wrote on 28 May 2014, 20:51 last edited by
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 :)