qmake会和QT_INSTALL_ preFIX。我该如何选择Qt库的新位置? [英] qmake and QT_INSTALL_PREFIX. How can I select a new location for Qt library?

查看:735
本文介绍了qmake会和QT_INSTALL_ preFIX。我该如何选择Qt库的新位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来qmake的,我试图建立一个现有的应用程序。 Qt的最初安装在/usr/local/lib/Qt-4.3.5和'的qmake -query QT_INSTALL_ preFIX返回路径。

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.

我提出了Qt库到另一个位置和生成的制作文件与在/ usr /本地原始路径穿插。

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

我怎么能强迫qmake的使用,我选择而无需重新编译新的位置的Qt?

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

推荐答案

这是一个'内置'编译成从qconfig.cpp的qmake。最好的办法是重新配置Qt的另一个 - preFIX,不幸的是重建。对于大多数其他变量,你可以使用一个.qmake.cache文件。见

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.qt.digia.com/qt/ qmake的环保型的reference.html

有关更多信息

这篇关于qmake会和QT_INSTALL_ preFIX。我该如何选择Qt库的新位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆