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. Getting error: Unknown module(s) in QT: webkitwidgets in QT 5.2.1 in Ubutu 12.04
Forum Updated to NodeBB v4.3 + New Features

Getting error: Unknown module(s) in QT: webkitwidgets in QT 5.2.1 in Ubutu 12.04

Scheduled Pinned Locked Moved Qt WebKit
qt5.2ubuntu 12.04webkit webkitwi
9 Posts 2 Posters 4.1k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    manojpatidar
    wrote on last edited by manojpatidar
    #1

    I have built Qt 5 libs from source into Ubuntu 12.04 and made a Qt test app. In .pro file I have written QT += core gui webkitwidgets to use Qwebview in my test project.

    But when I run qmake into Qt creator then it gives me error: Unknown module(s) in QT: webkitwidgets.

    I think webkit or webkitwidgets module is not build by source when I built Qt 5 libs from source In Ubutnu 12.04.

    So how can I build qtwebkit or webkitwdgtes module from source or anybody who has idea about the issue then please let me know.

    Thanks.

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

      Hi,

      You should be able to do that with:

      cd qtwebkit
      qmake
      make -jX where X is number of cores * 2 + 1
      

      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
      1
      • M Offline
        M Offline
        manojpatidar
        wrote on last edited by manojpatidar
        #3

        Ok, Thanks for reply. But when I run make -jX where X is number of cores * 2 + 1 command, it gives me the below errors.

        StringImpl.cpp:(.text+0x64ad): undefined reference to u_strToUpper_51' StringImpl.cpp:(.text+0x6547): undefined reference to u_strToUpper_51'
        StringImpl.cpp:(.text+0x6636): undefined reference to u_toupper_51' StringImpl.cpp:(.text+0x66fc): undefined reference to u_toupper_51'
        DatePrototype.cpp:(.text+0x328): undefined reference to udat_open_51' DatePrototype.cpp:(.text+0x35a): undefined reference to udat_format_51'
        DatePrototype.cpp:(.text+0x366): undefined reference to udat_close_51' JSGlobalObjectFunctions.cpp:(.text+0x99f): undefined reference to u_charType_51'
        Base64.cpp:(.text+0x840): undefined reference to u_charDirection_51' StringImpl.cpp:(.text+0xa00): undefined reference to u_foldCase_51'
        CollatorICU.cpp:(.text+0x1f1): undefined reference to ucol_getLocaleByType_51' CollatorICU.cpp:(.text+0x20f): undefined reference to ucol_getAttribute_51'
        CollatorICU.cpp:(.text+0x25b): undefined reference to ucol_open_51' CollatorICU.cpp:(.text+0x27f): undefined reference to ucol_open_51'
        CollatorICU.cpp:(.text+0x2a4): undefined reference to ucol_setAttribute_51' CollatorICU.cpp:(.text+0x2c2): undefined reference to ucol_setAttribute_5

        and many more such undefined reference errors. I think qtwebkit module uses ICU library ( which are missing at my machine ) .

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

          Indeed webkit uses ICU

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Indeed webkit uses ICU

            M Offline
            M Offline
            manojpatidar
            wrote on last edited by manojpatidar
            #5

            @SGaist , Thanks for your reply. I have build icu libs from source as per below.
            cd source && ./configure --prefix=/usr && make

            and install the same by make install, now I am able to get icu libs at path /usr/lib/ but still I am getting the same undefined reference errors when I build qtwebkit module from source.

            Just FYI, I was getting by default Qt 4.8.1 compatible .so libs at path /usr/lib/i386-linux-gnu/ in Ubuntu 12.04. But I want make deb of QT 5.2.1 app into Ubuntu 12.04 So I installed QT 5.2.1 installer into Ubuntu 12.04 and then I am able to run the QT 5 app into qt creator successfully.

            But when I tried to make deb of the same app then it takes the reference of machine's qt5 libs instead of QT 5 which I installed from installer.

            So that is why I build QT 5.2.1 from source but I got issues regarding webkitwidget when I run my app into Qt creator using Qt 5.2.1 ( which I have build from source ). Then I tried to build qtwebkit and got undefined reference errors which I have mentioned above in my post.

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

              You should take a look at the linux deployment guide to see how you can distribute a Qt application. Then you'll have to apply this to you deb package.

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                You should take a look at the linux deployment guide to see how you can distribute a Qt application. Then you'll have to apply this to you deb package.

                M Offline
                M Offline
                manojpatidar
                wrote on last edited by
                #7

                Thanks for your reply.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  manojpatidar
                  wrote on last edited by
                  #8

                  Is it possible to make Debian package of Qt 5.2.1 app into Ubuntu 12.04, 32 bit machine ?

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

                    Out of curiosity, why not use the system installed Qt ?

                    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

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved