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. How to re-install source build to a different prefix without rebuilding?

How to re-install source build to a different prefix without rebuilding?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 360 Views 2 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
    patrickkidd
    wrote on last edited by
    #1

    Building qt from source appears to hard-code the install prefix into some files. This prevents one from simply copying the install dir to another location. However, not one file installed by the Qt online installer contains the installation path in it (grep tells me this).

    What is necessary to move a Qt installation that is built from source from one path to another? Is there a way to replace the paths in some binaries, or some config file? And any other changes that need to be made.

    Cheers

    https://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use qt.conf.

      Plus, since Qt 5.14, Qt is relocatable: https://www.qt.io/blog/qt-is-relocatable

      (Z(:^

      P 1 Reply Last reply
      5
      • sierdzioS sierdzio

        You can use qt.conf.

        Plus, since Qt 5.14, Qt is relocatable: https://www.qt.io/blog/qt-is-relocatable

        P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        @sierdzio Aha! I did miss that feature-relocatable announcement. How excellent. And I wasn't aware that you could also do this with qt-conf. That is really important to know for anyone doing deployments. thanks

        https://alaskafamilysystems.com/

        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