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


i'm trying run simple client example using qtwebsockets using qt creator, add

qt       += websockets 

but throws when run build or qmake

:-1: error: unknown module(s) in qt: websockets 

i tried

qt       += core websockets 

then realized since installed qt creator repositories wasn't date, reinstalled qt website problem persisted, ran pkg-config --modversion qtcore , returns 4.8.6, thing is, in qt version tab of qt creator shows 5.4.1 gcc compiler compiler i’m using, in /opt/qt/5.4/gcc_64/lib there qt5websockets module in tab listed qt5 modules can't use them.

tried serialport , didn't work, tried opengl , worked means version problem can't seem find how solve.

i solved it, problem opened project made qt4, when tried build in freshly installed qt creator .pro.user file kept pointing qt4.

solution, create new project , add source first, or change references qt4 qt5.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -