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. Project error: unknown module QT: webkitwidgets
QtWS25 Last Chance

Project error: unknown module QT: webkitwidgets

Scheduled Pinned Locked Moved Qt WebKit
7 Posts 3 Posters 3.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.
  • T Offline
    T Offline
    T4QT
    wrote on last edited by
    #1

    Hi,
    I found few posts about this problem and my problem is not related to compilation of webkit.
    I have QT compiled with both Qtwebkit and Qtwebkitwidgets. Now I am trying to use them in my project file like
    QT += webkit and QT += Qtwebkitwidgets.

    But I am getting above error:

    Now I changed the project file as follows:

    Qt_MODULES += webkitwidgets
    Qt_MODULES += webkit

    Now this time it generated the Makefile but when I am trying to use #include <QtWebKitWidgets> and #include <QtWebKit> in my application it says No such file or directory.

    Thanks

    1 Reply Last reply
    1
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @
      QT = core gui widgets webkit webkitwidgets
      @

      Do not put that "Qt" in front of "webkitwidgets".

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        T4QT
        wrote on last edited by
        #3

        No I am not using QtWebkitwidget or Qtwebkit.

        QT = webkit webkitwidgets.

        Project error: Unknown modules in QT: webkit webkitwidgets

        Then I tried:
        qmake -d

        It gave me following:

        DEBUG 1: qt_src/qtbase/mkspecs/features/qt_functions.prf:172 : calling built in error ("unknown module in QT: webkit webkitwidgets)

        Project error: Unknown module in QT: webkit webkitwidgets

        As I said, I have both compiled and their libraries were in their respective folders and not at qbase/lib folder.

        Does this give some clue?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          They should have been copied to qtbase. Maybe you should run make install?

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            T4QT
            wrote on last edited by
            #5

            hi thanks for your reply.

            I moved my application folder within the qt_src folder and ran the similar command: qmake -o Makefile test.pro and it worked without any problem.
            I am not getting this stringent behaviour?

            Now fell into another issue: when I'm trying to deploy this test application, I copied my executable at the /bin directory and all the qt libraries at the /lib directory. I also put my plugins at /plugins/platform and fonts at /lib/fonts and now I am trying to run the application as below:

            #~/bin/bash
            export LD_LIBRARY_PATH=./lib
            export QT_QPA_FONTDIR=./lib/fonts
            export QT_QPA_PLATFORM_PLUGIN_PATH=/plugins/platforms

            and running the application:

            ./qt_test -platform linuxfb -display fb:/dev/fb3

            Now it says: This application failed to start because it could not find or load the Qt platform plugin "linuxfb".

            I am wondering why it is giving this error, Unfortunate thing is I managed to run the application 2 days before and after doing some changes it is not running now.

            Is this something related to how I created my makefile and generated the executable, because I am creating executable at one place and copying our to my target.

            Thanks

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              @export QT_QPA_PLATFORM_PLUGIN_PATH=/plugins/platforms@

              I might be wrong but aren't your missing a . before /plugins ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • T Offline
                T Offline
                T4QT
                wrote on last edited by
                #7

                no this is not an issue (it's typing error). Is my command:

                ./qt_test -platform linuxfb -display fb:/dev/fb3

                correct?

                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