Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

QtSerialPort build problem (Linux, Debian, Qt4)

$
0
0
Hi There. I recently purged my machine and now I am trying to get QtSerialPort to work again with Qt4. I fetched Qtserialport from git: git clone git://gitorious.org/qt/qtserialport.git Moved it into a seperate src folder: 10034 ./opt % mv qtserialport qtserialport-src 10035 ./opt % mkdir qtserialport-build 10036 ./opt % cd qtserialport-build And tried to build it. However it cannot find a file that should be included. 10037 qtserialport-build % qmake ../qtserialport-src debian ~/.opt/QtSerialPort/qtserialport-build 10038 qtserialport-build % make . . . In file included from /home/f/.opt/QtSerialPort/qtserialport-src/src/serialport/qserialport_unix_p.h:46:0,                  from /home/f/.opt/QtSerialPort/qtserialport-src/src/serialport/qserialport.cpp:53: /home/f/.opt/QtSerialPort/qtserialport-src/src/serialport/qserialport_p.h:49:35: fatal error: private/qringbuffer_p.h: No such file or directory compilation terminated. make[2]: *** [qserialport.o] Error 1 From gitk i can see, that a version-check-macro was removed: ------------------------ src/serialport/qserialport_p.h ------------------------ index cb6a748..4140493 100644  -46,11 +46,7    #include "qserialport.h"   -#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))  #include <private/qringbuffer_p.h> -#else -#include "qt4support/qringbuffer_p.h" -#endif    QT_BEGIN_NAMESPACE And now I have no idea how to fix this. Should i just hardcode the correct include path? (Since the file is there….) Any ideas?

Viewing all articles
Browse latest Browse all 2113

Trending Articles