QT_HOST_PATH

クロスコンパイル時のホスト側のQtインストール先のパス。

この変数は Qt 6.0 で導入されました。

クロスコンパイルを行う際、この変数はホストプラットフォーム用のQtのインストール先に設定する必要があります。これは、ホスト上で実行されるツール(moc、rcc、androiddeployqtなど)の場所を特定するために使用されます。 ホストシステム向けのQtをコンパイルする際も、QT_HOST_PATH を事前にインストール済みのホスト用Qtを指すように設定し、QT_FORCE_FIND_TOOLS をON に設定することで、事前にインストール済みのツールを再利用することが可能です。この場合、Qtのバージョンは一致している必要があります。

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