Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Location independent Qt libraries
tomasz_grobelny last edited by
Is it possible to compile Qt in such a way that installation path is not put into final .so/.la/*.prl files? We have to deliver Qt with our application but each customer may have the product installed in different location.
lgeyer last edited by
Have your customers to compile parts of the application themselves?
Otherwise those hard-coded paths won't be much of an issue. As long as the dynamic linker can resolve the libraries anywhere your application will start up.
In addition, qmakes -r option allows you to override hardcoded pathes in the binaries.