Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linker: Cannot find -lliblldb
Forum Updated to NodeBB v4.3 + New Features

Linker: Cannot find -lliblldb

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 761 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.
  • P Offline
    P Offline
    psoberoi
    wrote on last edited by
    #1

    I have been trying for hours to link with liblldb.so and I can't figure it out. I have the following libraries installed on my machine:

    /usr/lib/python2.7/dist-packages/lldb-3.8/_lldb.so
    /usr/lib/llvm-3.8/lib/python2.7/site-packages/lldb/_lldb.so
    /usr/lib/llvm-3.8/lib/liblldb.so

    I believe I need to link with the last one. At the bottom of my .pro I have the following:

    LIBS += -L"/usr/lib/llvm-3.8/lib/" -lliblldb

    I have tried every permutation of "-lliblldb", "-liblldb", "-llldb" and "-lldb" that I can think of. Any advice would be appreciated. Thanks in advance.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      @psoberoi said in Linker: Cannot find -lliblldb:

      LIBS += -L"/usr/lib/llvm-3.8/lib/" -lliblldb

      lib prefix is not required. Just add the following line. It should work. Assuming your library name is liblldb, you should just link with lldb. See following line.

      LIBS += -L"/usr/lib/llvm-3.8/lib/" -llldb

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • P Offline
        P Offline
        psoberoi
        wrote on last edited by
        #3

        Thank you for the fast response. I got the same error ": :-1: error: cannot find -llldb"

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          This error indicates that library is not present in the directory -L"/usr/lib/llvm-3.8/lib/". Can you show the contents of the directory ? Also is the library 32 bit or 64 bit ?

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • P Offline
            P Offline
            psoberoi
            wrote on last edited by
            #5

            Thank you, you have gotten me to the source of the problem. It turns out LLDB 3.8 has broken symlinks in the lib folder. I'm looking into how to fix.

            You can mark this question as closed. Thanks again.

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

              Hi,

              The most simple is to call

              ln -s liblldb.so.x.y.z liblldb.so.x.y
              ln -s liblldb.so.x.y.z liblldb.so.x
              ln -s liblldb.so.x.y.z liblldb.so
              

              Replace x, y and z by the appropriate numbers of your library.

              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
              1

              • Login

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