Installation QtSerialport
-
Thank you for your reply.
I installed QT5 using QtCreator package on ubuntu and I have no trace of QtSerialPort include files in the /usr/include/qt5 !
The version of QtCreator package: 3.0.1-0ubuntu4
Qt Creator 3.0.1
Based on Qt 5.2.1 (GCC 4.8.2, 32 bit)What is the problem?
thank you -
@bsuarez said:
I installed QT5 using QtCreator package on ubuntu
Qt Creator is only the IDE. You need to install Qt development libraries.
The recommended way to get the libraries is from the official website: http://www.qt.io/download-open-source/
However, you can get packages from the Ubuntu Software Center too if you want. Be aware that there are many separate packages, such as libqt5serialport5-dev.
-
Hi,
It comes with your installation of Qt
-
Hi,
but when I try #include <QSerialPort> then I get an error "No such file or directory." I addes QT += serialport.
On the web I found something like #include <QtSerialPort/QtSerialPort>. But is it the same library? And does it have an info library too?
Sorry for beeing such a newbie :D -
Hi,
but when I try #include <QSerialPort> then I get an error "No such file or directory." I addes QT += serialport.
On the web I found something like #include <QtSerialPort/QtSerialPort>. But is it the same library? And does it have an info library too?
Sorry for beeing such a newbie :D -
Thanks for your response!
I did the installation via an online installer. Or what do you mean?
The "info library" is the QSerialPortInfo library. Sorry for beeing unexact! -
There's always one basic that should be done: did you re-run qmake after you added
QT += serialport
to your .pro file ?