Tool/software: Linux
Hello,
Here are my specs:
TI SDK: 03.03.00.04
QT Build version: v5.9.5
Ubuntu 18.04
I am trying to import the qtserialport into my SDK for my Beaglebone Black application. Here are the steps I followed:
1) Git init for /opt/serialport (Directory i am working)
2) git clone git://code.qt.io/qt/qtserialport.git (Cloning the repository)
3) git checkout v5.9.5 (Selecting my version of the module)
4) Source environment-setup (My linux-devkit)
5) qmake qtserialport.pro
Result:
Info: creating cache file /opt/qtserialport/qtserialport/.qmake.cache
Checking for ntddmodm... no
6)Make
This is where i get the errors (see bold below):
[linux-devkit]:/opt/qtserialport/qtserialport> make
cd src/ && ( test -e Makefile || /opt/ti-processor-sdk-linux-am335x-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qt5/qmake /opt/qtserialport/qtserialport/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/opt/qtserialport/qtserialport/src'
cd serialport/ && ( test -e Makefile || /opt/ti-processor-sdk-linux-am335x-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qt5/qmake /opt/qtserialport/qtserialport/src/serialport/serialport.pro -o Makefile ) && make -f Makefile
/opt/qtserialport/qtserialport/src/serialport/serialport-lib.pri:3: 'qtConfig' is not a recognized test function.
<srcbase> = /opt/qtserialport/qtserialport
<outbase> = /opt/qtserialport/qtserialport
QtSerialPort: created fwd-include header(s) for <srcbase>/src/serialport/ { qserialport.h (2), qserialport_p.h (1), qserialportglobal.h (1), qserialportinfo.h (2), qserialportinfo_p.h (1), qtudev_p.h (1) }
QtSerialPort: created version header
QtSerialPort: created master header
QtSerialPort: created headers.pri file
make[2]: Entering directory '/opt/qtserialport/qtserialport/src/serialport'
creating linker version script QtSerialPort.version
moc qserialport.h
compiling qserialport.cpp
qserialport.cpp: In constructor 'QSerialPortPrivate::QSerialPortPrivate()':
qserialport.cpp:125:5: error: 'writeBufferChunkSize' was not declared in this scope
writeBufferChunkSize = InitialBufferSize;
^
qserialport.cpp: At global scope:
qserialport.cpp:611:1: error: 'QT_WARNING_DISABLE_DEPRECATED' does not name a type
QT_WARNING_DISABLE_DEPRECATED
^
qserialport.cpp: In member function 'bool QSerialPort::clear(QSerialPort::Directions)':
qserialport.cpp:1085:12: error: 'class QSerialPortPrivate' has no member named 'writeBuffer'
d->writeBuffer.clear();
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp: In static member function 'static void QSerialPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
.moc/moc_qserialport.cpp:340:104: warning: 'void QSerialPort::dataErrorPolicyChanged(QSerialPort::DataErrorPolicy)' is deprecated [-Wdeprecated-declarations]
case 5: _t->dataErrorPolicyChanged((*reinterpret_cast< QSerialPort::DataErrorPolicy(*)>(_a[1]))); break;
^
In file included from qserialport.cpp:43:0:
qserialport.h:283:24: note: declared here
QT_DEPRECATED void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:345:89: warning: 'void QSerialPort::settingsRestoredOnCloseChanged(bool)' is deprecated [-Wdeprecated-declarations]
case 10: _t->settingsRestoredOnCloseChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
^
In file included from qserialport.cpp:43:0:
qserialport.h:292:24: note: declared here
QT_DEPRECATED void settingsRestoredOnCloseChanged(bool restore);
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:389:80: warning: 'void QSerialPort::dataErrorPolicyChanged(QSerialPort::DataErrorPolicy)' is deprecated [-Wdeprecated-declarations]
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QSerialPort::dataErrorPolicyChanged)) {
^
In file included from qserialport.cpp:43:0:
qserialport.h:283:24: note: declared here
QT_DEPRECATED void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:424:80: warning: 'void QSerialPort::settingsRestoredOnCloseChanged(bool)' is deprecated [-Wdeprecated-declarations]
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QSerialPort::settingsRestoredOnCloseChanged)) {
^
In file included from qserialport.cpp:43:0:
qserialport.h:292:24: note: declared here
QT_DEPRECATED void settingsRestoredOnCloseChanged(bool restore);
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:448:80: warning: 'QSerialPort::DataErrorPolicy QSerialPort::dataErrorPolicy() const' is deprecated [-Wdeprecated-declarations]
case 5: *reinterpret_cast< DataErrorPolicy*>(_v) = _t->dataErrorPolicy(); break;
^
qserialport.cpp:1152:30: note: declared here
QSerialPort::DataErrorPolicy QSerialPort::dataErrorPolicy() const
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:452:77: warning: 'bool QSerialPort::settingsRestoredOnClose() const' is deprecated [-Wdeprecated-declarations]
case 9: *reinterpret_cast< bool*>(_v) = _t->settingsRestoredOnClose(); break;
^
qserialport.cpp:636:6: note: declared here
bool QSerialPort::settingsRestoredOnClose() const
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:466:80: warning: 'bool QSerialPort::setDataErrorPolicy(QSerialPort::DataErrorPolicy)' is deprecated [-Wdeprecated-declarations]
case 5: _t->setDataErrorPolicy(*reinterpret_cast< DataErrorPolicy*>(_v)); break;
^
qserialport.cpp:1133:6: note: declared here
bool QSerialPort::setDataErrorPolicy(DataErrorPolicy policy)
^
In file included from qserialport.cpp:1476:0:
.moc/moc_qserialport.cpp:469:77: warning: 'void QSerialPort::setSettingsRestoredOnClose(bool)' is deprecated [-Wdeprecated-declarations]
case 9: _t->setSettingsRestoredOnClose(*reinterpret_cast< bool*>(_v)); break;
^
In file included from qserialport.cpp:43:0:
qserialport.h:217:24: note: declared here
QT_DEPRECATED void setSettingsRestoredOnClose(bool restore);
^
Makefile:658: recipe for target '.obj/qserialport.o' failed
make[2]: *** [.obj/qserialport.o] Error 1
make[2]: Leaving directory '/opt/qtserialport/qtserialport/src/serialport'
Makefile:42: recipe for target 'sub-serialport-make_first' failed
make[1]: *** [sub-serialport-make_first] Error 2
make[1]: Leaving directory '/opt/qtserialport/qtserialport/src'
Makefile:44: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
I have no idea what the issue is and have tried countless solutions with no results.
Any help is appreciated.