Change Qt installation path after build?

How can I change the installation path of Qt after creating it?

Example: qmake.exe binaries for the original installation path, how can I change / override it?

Thank.

Edit: I finally found this patch applicable to Qt:

+5
source share
5 answers

I studied this and found a way that works (in qt 4.7.2) by configuring qt with the qt.conf file.

In my case, I added qt4-4.7.2 / bin / qt.conf (I think it should be in the same place as the qmake executable)

With the following contents:

[Paths]
Prefix = c:/my_path/to/qt4-4.7.2

qmake -query !

. http://qt-project.org/doc/qt-5.0/qtdoc/qt-conf.html

+25

qmake qmake -set.
. qmake.

+4

, . , PATH.

Qt-Creator goto,

- > - > Qt4- > Qt

. , + . QMake, . Qt . , . , .

+2

unix , , ,

0

Unix/Linux:

You can also use LD_LIBRARY_PATH + PATH for workarounds. But still, some default values ​​are hardcoded in the code, yes. Restructuring is mandatory.

0
source

All Articles