Unsolved How to re-install source build to a different prefix without rebuilding?
-
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
-
You can use qt.conf.
Plus, since Qt 5.14, Qt is relocatable: https://www.qt.io/blog/qt-is-relocatable
-
@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