Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. error: cannot find -lqextserialport-1.2d
Forum Updated to NodeBB v4.3 + New Features

error: cannot find -lqextserialport-1.2d

Scheduled Pinned Locked Moved Solved 3rd Party Software
6 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kxmx
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kxmx
        wrote on last edited by kxmx
        #3

        @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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kxmx
            wrote on last edited by
            #5

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

            TARGET = $${TARGET}d
            QEXTSERIALPORTLIB=$${QEXTSERIALPORTLIB}d

            and after remove "d" program run...

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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 :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved