tags:

views:

640

answers:

1

I am new to qmake and I am trying to build an existing application. Qt was originally installed in /usr/local/lib/Qt-4.3.5 and 'qmake -query QT_INSTALL_PREFIX' returns that path.

I have moved the Qt library to another location and the generated Makefiles are peppered with the /usr/local original path.

How can I force qmake to use the new location I selected without recompiling Qt?

+4  A: 

This is a 'builtin' compiled into qmake from qconfig.cpp. The best way is to reconfigure Qt with another -prefix and rebuild unfortunately. For most other variables, you can use a .qmake.cache file. See

http://doc.trolltech.com/4.5/qmake-environment-reference.html

for more info

Henrik Hartz