Nominate our 2022 Qt Champions!

error: cannot find -lqextserialport-1.2d

  • Hello, I need to build an old source code after the previous programmer. Now I'm stuck on:
    :-1: error: cannot find -lqextserialport-1.2d
    :-1: error: collect2: error: ld returned 1 exit status

    Qt 5.1
    os xubuntu 14.04 86_64 on virtualbox

    Any idea? Thanks

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You either need to build and install QExtSerialPort (which is not the same as Qt's QSerialPort module and also not a part of Qt official packages) or port the code to use the QSerialPort module.

  • @SGaist said:


    Thanks for reply, so I install this package but result is still same.. Can it a be problem with the path to libs?

    btw: sorry im not qt or cpp developer

    in .pro file is

    #DEPENDPATH += . ./../../qextserialport/lib/ ./../../qextserialport/build/ common/ .
    #INCLUDEPATH += ./ ./../../qextserialport/src common/
    #QMAKE_LIBDIR += ./../../qextserialport/build/ ./../../qextserialport/lib/

    this is propably the problem

  • Lifetime Qt Champion

    You also have to remove the -1.2d from your .pro file

  • thanks for advices... after a detailed reading of the .pro file, I found this syntax error

    TARGET = $${TARGET}d

    and after remove "d" program run...

  • Lifetime Qt Champion

    You're welcome !

    Since you have it working now please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

Log in to reply