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. Relative Path on Qmake (.pro file)
Forum Updated to NodeBB v4.3 + New Features

Relative Path on Qmake (.pro file)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 7.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.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    I want to configure the libs to relative path of project.

    @
    unix {
    LIBS += /home/dvl/SOURCE_CODE/qextserialport-1.2beta2/lib/libqextserialport-1.2.so
    }
    @

    I try to use this settings, but not works:

    @
    unix {
    LIBS += ./lib/libqextserialport-1.2.so
    }
    @
    and
    @
    unix {
    LIBS += lib/libqextserialport-1.2.so
    }
    @

    It's possible to use relative path on .pro file?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #2

      This not works too:

      @
      unix {
      LIBS += -L./lib/
      }
      @

      1 Reply Last reply
      0
      • U Offline
        U Offline
        unai_i
        wrote on last edited by
        #3

        Hello,
        Try:
        @
        unix {
        LIBS += $$PRO_FILE_PWD/lib/libqextserialport-1.2.so
        }
        @

        Good luck!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #4

          thanks, now is resolved!

          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