I have recently installed Qt5.4 on Opensuse 12.3, where I have had
Qt 4.8 for a while – However, when I try to compile a program that does a lot
of serial communications and runs well under 4.8,
(and having taken LIB -lQtSerialPort out of the project file
and put in QT += serialport)
I get “No such file or directory” at the line
#include <QtSerialPort/QtSerialPort>
I have tried putting into the project file
INCLUDEPATH += </opt/Qt5.4.0/5.4/gcc_64>
and variants such as INCLUDEPATH += </opt/Qt5.4.0/5.4/gcc_64/include>
but this does not help. When I put the whole path in
#include </opt/Qt5.4.0/5.4/gcc_64/include/QtSerialPort/QtSerialPortDepends>
etc.
I get
“Q_NULLPTR was not declared in this scope”
at line 182 of qserialport.h
explicit QSerialPort(QObject *parent = Q_NULLPTR);
This runs fine on a machine that I have installed Opensuse13.1 on, where the installation
was done by Opensuse 13.1.
Thanks for any hints !!
Paul
↧