Location independent Qt libraries

  • 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.

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.