Results 1 to 2 of 2

Thread: Unable to compile QserialDevice

  1. #1
    Join Date
    Dec 2011
    Location
    Bangalore,India
    Posts
    38
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Unable to compile QserialDevice

    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:

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to compile QserialDevice

    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.

Similar Threads

  1. Unable to compile project
    By vlad230 in forum Newbie
    Replies: 2
    Last Post: 16th June 2012, 14:08
  2. Unable to Compile qextserialport on max os 10.6
    By KenJustKen in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2012, 20:22
  3. Jom/nmake is unable to compile
    By Tvt204 in forum Installation and Deployment
    Replies: 2
    Last Post: 1st August 2011, 12:27
  4. Unable to compile an Example
    By learner in forum Newbie
    Replies: 11
    Last Post: 15th November 2010, 15:27
  5. fftw unable to compile
    By superutsav in forum General Programming
    Replies: 7
    Last Post: 24th January 2006, 14:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.