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. Facing linking libs on linux platform

Facing linking libs on linux platform

Scheduled Pinned Locked Moved Solved 3rd Party Software
4 Posts 2 Posters 518 Views
  • 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.
  • J Offline
    J Offline
    jineshmehta
    wrote on 7 Jul 2020, 17:04 last edited by jineshmehta 7 Jul 2020, 17:05
    #1

    I am facing lib linking issues with my project on Linux platform.

    Following is my lib path code :

    LIBS += "-L/mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/" -llibquazip

    and I have these libs at /mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/ placed :

    libquazip.a
    libquazip.so
    libquazip.so.1
    libquazip.so.1.0
    libquazip.so.1.0.0

    I know I have placed both static and dynamic libs. If possible can someone explain to me how to link them in pro files one at a time?

    Error occurred : :-1: error: cannot find -llibquazip

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 7 Jul 2020, 17:13 last edited by
      #2

      Hi
      I think it might be the lib naming thing. (linux thing)
      https://forum.qt.io/topic/79697/linking-to-a-shared-object-in-linux

      so maybe
      LIBS += -L/mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/ -quazip

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jineshmehta
        wrote on 7 Jul 2020, 17:19 last edited by
        #3

        Thanks i think that -llibquazip was creating issue. I updated it to -lquazip and it started working.

        M 1 Reply Last reply 7 Jul 2020, 17:35
        1
        • J jineshmehta
          7 Jul 2020, 17:19

          Thanks i think that -llibquazip was creating issue. I updated it to -lquazip and it started working.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 7 Jul 2020, 17:35 last edited by mrjj 7 Jul 2020, 19:19
          #4

          @jineshmehta
          Hi
          Yes that was what i meant. maybe badly explained.
          In linux, even the actual file name does start with libXX, then you
          do not included when used as link name. and just use XX

          1 Reply Last reply
          1

          3/4

          7 Jul 2020, 17:19

          • Login

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