Project ERROR: Unknown module(s) in QT: websockets
-
wrote on 19 Sept 2014, 04:09 last edited by
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?
-
wrote on 19 Sept 2014, 04:15 last edited by
Hi and welcome to devnet
in your .pro file add this line
QT += websockets
and run qmake + Build
-
wrote on 19 Sept 2014, 04:19 last edited by
It's already added.
QT += core websockets
I ran qmake. I got the same error message.
-
wrote on 19 Sept 2014, 04:24 last edited by
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. -
wrote on 19 Sept 2014, 04:37 last edited by
it could be version problem.
try to install new packeage of libqt5webkit
http://askubuntu.com/questions/378397/how-to-install-libqtwebkit5
-
wrote on 19 Sept 2014, 04:45 last edited by
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.
-
wrote on 20 Feb 2015, 10:52 last edited by
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 -
wrote on 20 Feb 2015, 10:52 last edited by
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 -
wrote on 23 Apr 2017, 09:04 last edited by
sudo apt-get install libqt5websockets5-dev
-
wrote on 15 Dec 2017, 10:58 last edited by
The documentation says "Since: Qt 5.3"
Check with "qmake --version" which version you have installed. Cheers. -
wrote on 27 Apr 2018, 23:58 last edited by
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.