QT_HOST_PATH

Speicherort der Qt-Installation auf dem Host bei der Cross-Kompilierung.

Diese Variable wurde in Qt 6.0 eingeführt.

Bei der Cross-Kompilierung muss diese Variable auf den Installationspfad von Qt für die Host-Plattform gesetzt werden. Sie dient dazu, die auf dem Host auszuführenden Werkzeuge (moc, rcc, androiddeployqt usw.) zu finden. Es ist auch möglich, vorinstallierte Werkzeuge beim Kompilieren von Qt für Host-Systeme wiederzuverwenden, indem man ` QT_HOST_PATH ` so einrichtet, dass es auf ein vorinstalliertes Host-Qt verweist, und ` QT_FORCE_FIND_TOOLS ` auf ` ON` setzt. In diesem Fall sollten die Qt-Versionen übereinstimmen.

© 2026 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.