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. WebKit is "gone"

WebKit is "gone"

Scheduled Pinned Locked Moved Qt WebKit
14 Posts 6 Posters 12.7k 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.
  • R Offline
    R Offline
    ronM71
    wrote on 7 Jan 2013, 21:02 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nvharisha
      wrote on 8 Jan 2013, 06:12 last edited by
      #2

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

      Hari

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on 8 Jan 2013, 08:03 last edited by
        #3

        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.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ronM71
          wrote on 8 Jan 2013, 17:13 last edited by
          #4

          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.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on 8 Jan 2013, 18:26 last edited by
            #5

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

            1 Reply Last reply
            0
            • R Offline
              R Offline
              ronM71
              wrote on 8 Jan 2013, 19:15 last edited by
              #6

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

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lgeyer
                wrote on 8 Jan 2013, 19:46 last edited by
                #7

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

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  ronM71
                  wrote on 8 Jan 2013, 19:49 last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    ronM71
                    wrote on 8 Jan 2013, 20:51 last edited by
                    #9

                    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?

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lgeyer
                      wrote on 8 Jan 2013, 21:37 last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nvharisha
                        wrote on 9 Jan 2013, 03:01 last edited by
                        #11

                        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?

                        Hari

                        1 Reply Last reply
                        0
                        • goldenhawkingG Offline
                          goldenhawkingG Offline
                          goldenhawking
                          wrote on 10 Jan 2013, 04:07 last edited by
                          #12

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

                          Qt is the best C++ framework I've ever met.

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            renra
                            wrote on 25 May 2014, 01:21 last edited by
                            #13

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

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              AlexMagalhaes
                              wrote on 28 May 2014, 20:51 last edited by
                              #14

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

                              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