PDA

View Full Version : Unable to compile QserialDevice



kulsekarr
20th September 2012, 10:16
Hi,
I was unable to compile QserialDevice library and i got some few errors so that i was unable to create library file. so kindly help me and answers are appreciated.

I have attached the errors below.

serialdevice\abstractserial.cpp: In member function 'QString AbstractSerial::fl
owControl() const':
qserialdevice\abstractserial.cpp:1082: error: call of overloaded 'QString(int)'
is ambiguous
d:\QtSDK\Desktop\Qt\4.7.3\mingw\include/QtCore/qstring.h:428: note: candidates a
re: QString::QString(const QByteArray&)
d:\QtSDK\Desktop\Qt\4.7.3\mingw\include/QtCore/qstring.h:426: note:
QString::QString(const char*)
d:\QtSDK\Desktop\Qt\4.7.3\mingw\include/QtCore/qstring.h:728: note:
QString::QString(const QString&)
d:\QtSDK\Desktop\Qt\4.7.3\mingw\include/QtCore/qstring.h:106: note:
QString::QString(QChar)
d:\QtSDK\Desktop\Qt\4.7.3\mingw\include/QtCore/qstring.h:105: note:

kuzulis
20th September 2012, 17:50
Instead of QSerialDevice use QtSerialPort,

see http://qt-project.org/wiki/QtSerialPort

UPD: I see, that you use old Qt version 4.7.x, also try update it to 4.8.x because QtSerialPort support Qt 4.8 and above.