Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Qt install path after building?

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.

Edit : I finally found this patch to apply to Qt :

  • http://ftp-developpez.com/qt/binaires/win32/patcher/QtPatcher.7z
  • http://ftp-developpez.com/qt/binaires/win32/patcher/QtPatche_src.7z
like image 475
bernedef Avatar asked May 25 '10 15:05

bernedef


People also ask

Where does Qt get installed?

For the per user install, the default installation will be a subdirectory called Qt in the current working directory. For the global install, the default location is /opt/Qt.

Where does Qt install Linux?

To configure the Qt library for your machine type, run the ./configure script in the package directory. By default, Qt is configured for installation in the /usr/local/Qt-%VERSION% directory, but this can be changed by using the -prefix option.

Where is Qmake installed?

qmake.exe is in bin directory of your Qt installation folder (along with all the Qt dlls for deployment). Your compiler should be detected automatically (check the Tools > Options > Build & Run > Compilers tab). Next, check if your Qt installation is detected (Qt Versions tab).


1 Answers

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

like image 184
Fabio Zadrozny Avatar answered Oct 07 '22 00:10

Fabio Zadrozny