September 6, 2011

tomasz_grobelny tomasz_grobe..
Lab Rat
13 posts

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.

1 reply

September 6, 2011

Lukas Geyer Lukas Geyer
Lab Rat
2068 posts

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.

 
  ‹‹ Qt 4.7 Desktop application support for right-to-left UI (Hebrew)      How to detect QMainWindow maximize? ››

You must log in to post a reply. Not a member yet? Register here!