Qt

Installation

Qt

Build

$ qmake project.pro

Switch between Qt4 and Qt5

How do I change which version of Qt is used for qmake?

$ qtchooser -list-versions
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5

c$ QT_SELECT=qt4 qmake --version
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

$ QT_SELECT=qt5 qmake --version
QMake version 3.1
Using Qt version 5.9.1 in /usr/lib/x86_64-linux-gnu

Serial

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

$ QT_SELECT=qt5 qmake candle.pro 
Info: creating stash file /home/andreas/src/Candle/src/.qmake.stash
Project ERROR: Unknown module(s) in QT: serialport

$ sudo apt-get install libqt5serialport5-dev

Leave a Reply

Your email address will not be published. Required fields are marked *