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
Forum Update on Monday, May 27th 2025

Facing linking libs on linux platform

Scheduled Pinned Locked Moved Solved 3rd Party Software
4 Posts 2 Posters 520 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 last edited by jineshmehta
    #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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        mrjjM 1 Reply Last reply
        1
        • J jineshmehta

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #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

          • Login

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