Change Qt install path after building?

前端 未结 5 777
自闭症患者
自闭症患者 2020-12-14 23:11

how can I change Qt install path after I building it ?

Example : qmake.exe search binaries to original install path, how can I change/redefine it ?

Thanks.

5条回答
  •  情书的邮戳
    2020-12-14 23:52

    I was looking into this and found a way that works (in qt 4.7.2) by customizing qt with a qt.conf file.

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

    With the following contents:

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

    and the qmake -query started returning the proper paths!

    See: http://qt-project.org/doc/qt-5.0/qtdoc/qt-conf.html for more details

提交回复
热议问题