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. why Qt designed to be unmoveable after installation?
QtWS25 Last Chance

why Qt designed to be unmoveable after installation?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 800 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.
  • A Offline
    A Offline
    Adam BZH
    wrote on last edited by Adam BZH
    #1

    I spend hours for successfully compile the static version of 5.8 last night. after move the binaries to new location, qtcreator complains that the qt is not properly installed and let me run make install.

    Unfortunately, I deleted the source this morning, in this case, is there a easier way to solve this problem instead of rebuild everything?

    Also, why it designed to be unmoveable after installation? what's the point to "hard code" the path into the qmake exe file?

    Thanks.

    A 1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Maybe this project will help you: QtBinPatcher.

      1 Reply Last reply
      2
      • B Offline
        B Offline
        Bart_Vandewoestyne
        wrote on last edited by
        #3

        I'm not 100% sure and don't have much time to check, but can't a qt.conf file help you?
        See http://doc.qt.io/qt-5/qt-conf.html

        1 Reply Last reply
        0
        • A Adam BZH

          I spend hours for successfully compile the static version of 5.8 last night. after move the binaries to new location, qtcreator complains that the qt is not properly installed and let me run make install.

          Unfortunately, I deleted the source this morning, in this case, is there a easier way to solve this problem instead of rebuild everything?

          Also, why it designed to be unmoveable after installation? what's the point to "hard code" the path into the qmake exe file?

          Thanks.

          A Offline
          A Offline
          ambershark
          wrote on last edited by ambershark
          #4

          @Adam-BZH I move Qt after I build it all the time.

          Assuming linux here, you can use chrpath to fix where the libs point, or you can just use a qt.conf file. On osx you can use otool to fix the libs.

          Mostly I opt for the latter. Here is an example:

          [Paths]
          Plugins = /path/to/qt/plugins
          

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          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