Moving Qt to another directory

posted Apr 8, 2012, 10:03 PM by Nico Kruithof
Qmake hardcodes the library directory when building the library. Therefore it is not possible to "just" copy the directory structure to another place and expect qmake to find the libraries there. Instead, you need to tell it where to find the include directory and libraries by adding a qt.conf settings object next to it. An example is given below:

Prefix = c:/my_path/to/qt4

See also: