Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Defining a relative HOME path in the Project file?
Forum Updated to NodeBB v4.3 + New Features

Defining a relative HOME path in the Project file?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.6k 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.
  • J Offline
    J Offline
    jh224
    wrote on last edited by
    #1

    How do you define a relative HOME path in the project file? If I install an app on many boxes, I need a relative home path(/home/fred, /home/bob, /home/joe...) Looking at the documentation, it seems that $$(PWD) will not give me this. I want set the rpath with something like this QMAKE_RPATHDIR = $$HOME/myApp/locallibs (of course $$HOME is not valid)

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

      I think this should work:

      @QMAKE_RPATHDIR = $$(HOME)/myApp/locallibs
      message("QMAKE_RPATHDIR="$$QMAKE_RPATHDIR)@

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jh224
        wrote on last edited by
        #3

        Thanks, it worked like a charm.

        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