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
QtWS25 Last Chance

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.
  • G Offline
    G Offline
    goodsogi
    wrote on last edited by
    #1

    Hello, there.

    I am trying to run simple chat example. But I got the above error message.

    Do I need to install websocket module? Then how I can do that?

    1 Reply Last reply
    0
    • IamSumitI Offline
      IamSumitI Offline
      IamSumit
      wrote on 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 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
        • IamSumitI Offline
          IamSumitI Offline
          IamSumit
          wrote on 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 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
            • IamSumitI Offline
              IamSumitI Offline
              IamSumit
              wrote on 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 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 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 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
                    • sonichyS Offline
                      sonichyS Offline
                      sonichy
                      wrote on 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 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 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