Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project ERROR: Unknown module(s) in QT: websockets
Forum Update on Monday, May 27th 2025

Project ERROR: Unknown module(s) in QT: websockets

Scheduled Pinned Locked Moved General and Desktop
12 Posts 6 Posters 19.3k 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.
  • I Offline
    I Offline
    IamSumit
    wrote on 19 Sept 2014, 04:15 last edited by
    #2

    Hi and welcome to devnet

    in your .pro file add this line

    QT += websockets

    and run qmake + Build

    Be Cute

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goodsogi
      wrote on 19 Sept 2014, 04:19 last edited by
      #3

      It's already added.

      QT += core websockets

      I ran qmake. I got the same error message.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        IamSumit
        wrote on 19 Sept 2014, 04:20 last edited by
        #4

        Hi
        http://stackoverflow.com/questions/18699403/project-error-unknown-modules-in-qt-webkitwidgets

        Be Cute

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goodsogi
          wrote on 19 Sept 2014, 04:24 last edited by
          #5

          I followed the instruction on the link. But it didn't work.

          I tried to install libqt5webkit5-dev. But I got the message:
          libqt5webkit5-dev is already the newest version.

          1 Reply Last reply
          0
          • I Offline
            I Offline
            IamSumit
            wrote on 19 Sept 2014, 04:37 last edited by
            #6

            it could be version problem.

            try to install new packeage of libqt5webkit

            http://askubuntu.com/questions/378397/how-to-install-libqtwebkit5

            Be Cute

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goodsogi
              wrote on 19 Sept 2014, 04:45 last edited by
              #7

              I followed your suggestion.

              sudo apt-get install libqt5webkit5

              but it didn't work:
              libqt5webkit5 is already the newest version.

              Anyway, I am using qt 5.3.1 on Ubuntu 14.04.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                waynix
                wrote on 20 Feb 2015, 10:52 last edited by
                #8

                I have the same problem using qt-everywhere-opensource-src-5.4.0.
                I have cross-compiled qt for my device (arm xilinx zynq). I see that there is a libQt5WebSockets.so in my lib folder but the examples/websockets/echoclient does return the error message "Project ERROR: Unknown module(s) in QT: websockets"
                EDIT
                My error was that I had used the qmake from the build directory and not the qmake from the "./configure --prefix=" path

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  waynix
                  wrote on 20 Feb 2015, 10:52 last edited by
                  #9

                  I have the same problem using qt-everywhere-opensource-src-5.4.0.
                  I have cross-compiled qt for my device (arm xilinx zynq). I see that there is a libQt5WebSockets.so in my lib folder but the examples/websockets/echoclient does return the error message "Project ERROR: Unknown module(s) in QT: websockets"
                  EDIT
                  My error was that I had used the qmake from the build directory and not the qmake from the "./configure --prefix=" path

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sonichy
                    wrote on 23 Apr 2017, 09:04 last edited by
                    #10

                    sudo apt-get install libqt5websockets5-dev

                    https://github.com/sonichy

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      fiorentinoing
                      wrote on 15 Dec 2017, 10:58 last edited by
                      #11

                      The documentation says "Since: Qt 5.3"
                      Check with "qmake --version" which version you have installed. Cheers.

                      1 Reply Last reply
                      1
                      • C Offline
                        C Offline
                        chraz
                        wrote on 27 Apr 2018, 23:58 last edited by
                        #12

                        Maybe late, but may help anyway.
                        Go to Tools > Options > Build & Run > Desktop (default)
                        Then, on Qt version, choose Qt 5 instead of Qt 4.

                        Hope this will resolve your issue.

                        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