Solved 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 statusQt 5.1
os xubuntu 14.04 86_64 on virtualboxAny idea? Thanks
-
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:
QExtSerialPort
Thanks for reply, so I install this package http://packages.ubuntu.com/search?keywords=qextserialport 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
-
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
QEXTSERIALPORTLIB=$${QEXTSERIALPORTLIB}dand after remove "d" program run...
-
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 :)