QT_HOST_PATH
交叉编译时 Qt 主机的安装位置。
此变量在 Qt 6.0 中引入。
交叉编译时,该变量必须设置为主机平台的 Qt 安装位置。它用于定位要在主机上运行的工具(moc、rcc、androiddeployqt 等)。在为主机系统编译 Qt 时,也可以重新使用预安装的工具,方法是使用指向预安装主机 Qt 的QT_HOST_PATH
,并将QT_FORCE_FIND_TOOLS
设置为ON
。在这种情况下,Qt 版本应匹配。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.