学会了使用qmake -query

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了学会了使用qmake -query相关的知识,希望对你有一定的参考价值。

D:\Qt\Qt5.6.2_static_kk\bin>qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:C:/Qt/Qt5.6.2_static_kk
QT_INSTALL_ARCHDATA:C:/Qt/Qt5.6.2_static_kk
QT_INSTALL_DATA:C:/Qt/Qt5.6.2_static_kk
QT_INSTALL_DOCS:C:/Qt/Qt5.6.2_static_kk/doc
QT_INSTALL_HEADERS:C:/Qt/Qt5.6.2_static_kk/include
QT_INSTALL_LIBS:C:/Qt/Qt5.6.2_static_kk/lib
QT_INSTALL_LIBEXECS:C:/Qt/Qt5.6.2_static_kk/bin
QT_INSTALL_BINS:C:/Qt/Qt5.6.2_static_kk/bin
QT_INSTALL_TESTS:C:/Qt/Qt5.6.2_static_kk/tests
QT_INSTALL_PLUGINS:C:/Qt/Qt5.6.2_static_kk/plugins
QT_INSTALL_IMPORTS:C:/Qt/Qt5.6.2_static_kk/imports
QT_INSTALL_QML:C:/Qt/Qt5.6.2_static_kk/qml
QT_INSTALL_TRANSLATIONS:C:/Qt/Qt5.6.2_static_kk/translations
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:C:/Qt/Qt5.6.2_static_kk/examples
QT_INSTALL_DEMOS:C:/Qt/Qt5.6.2_static_kk/examples
QT_HOST_PREFIX:C:/Qt/Qt5.6.2_static_kk
QT_HOST_DATA:C:/Qt/Qt5.6.2_static_kk
QT_HOST_BINS:C:/Qt/Qt5.6.2_static_kk/bin
QT_HOST_LIBS:C:/Qt/Qt5.6.2_static_kk/lib
QMAKE_SPEC:win32-g++
QMAKE_XSPEC:win32-g++
QMAKE_VERSION:3.0
QT_VERSION:5.6.2

路径都被写死了,所以迁移到D盘不行。

http://www.stupidbeauty.com/Blog/article/1270/Qt4.7.0%E6%96%87%E6%A1%A3%E7%BF%BB%E8%AF%91%EF%BC%9A%E9%85%8D%E7%BD%AEqmake%E7%9A%84%E7%8E%AF%E5%A2%83%EF%BC%8CConfiguring%20qmake‘s%20Environment

http://popohope.blog.chinaunix.net/uid-17271829-id-4771626.html

https://www.devbean.net/2016/08/qt-creator-source-study-03/

 

以上是关于学会了使用qmake -query的主要内容,如果未能解决你的问题,请参考以下文章

qmake: No such file or directory 的问题解决

如何告诉 qmake 不要创建文件夹?

QtCreator / qmake额外目标没有运行

qmake 不调用 uic

Qt高级——QMake快速入门

从 qmake 运行脚本以获取内部版本号