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.



  • When I wanted to build project with WebView, got similar error. Looking at other examples (QtTestBrowser), i changed to "webkitwidgets" and got it working.



  • 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.



  • Have you tried deleting the <code>.pro.user</code> file and reconfiguring your project in QtCreator?



  • 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".



  • Does it work with a small, but clean <code>.pro</code> file?
    @
    QT += webkitwidgets
    @



  • 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.user

    this 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.



  • it's even weirder. when i start a new empty project based on qt5...

    @QT += webkitwidgets@

    will not work. it can't find it.

    but building qt 5's own browser example with:

    @QT += webkitwidgets@

    works.

    I don't get this. why?



  • [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>?



  • 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 :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.