Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

websocket

qt

qt5

I'm trying to run a simple client example using QTWebsockets using Qt Creator, already add the

QT       += websockets

But it throws this when i run build or qmake

:-1: error: Unknown module(s) in QT: websockets

I tried

QT       += core websockets

Then realized that since installed Qt Creator from the repositories it wasn't up to date, so I reinstalled it from the Qt website but the problem persisted, I then ran pkg-config --modversion QtCore and it returns 4.8.6, thing is, in the QT version tab of qt creator it shows 5.4.1 to GCC compiler which is the compiler I’m using, in /opt/Qt/5.4/gcc_64/lib there is the QT5WebSockets module even in the help tab are listed the QT5 modules but I can't use them.

Tried with SerialPort and it didn't work, tried with Opengl and it worked which means is a version problem but I can't seem to find how to solve.

like image 940
Christian Raul Hidalgo Pino Avatar asked Apr 29 '15 02:04

Christian Raul Hidalgo Pino


1 Answers

sudo apt-get install libqt5websockets5-dev
like image 164
sonichy Avatar answered Sep 25 '22 02:09

sonichy