Windowsでジャンクションポイントを使う
Windows での長いプロジェクトパスはビルドに失敗する可能性があります。
これらの問題を解決するには
- 絶対パスが短いソースディレクトリ名を使用してください。例えば、
C:\Users\My Name\Projectsの代わりにC:\devを使用します。 - 短いビルド・ディレクトリ・パスを使用する。
- CMakeのNinjaジェネレーターを使用する。
- Windows 上で、ソース・ディレクトリとビルド・ディレクトリにジャンクション・ポイントを使用する。
ジャンクションポイント
ジャンクション・ポイントでは、あるディレクトリがコンピューター上の別のディレクトリへのエイリアスとして機能します。
CMake の configure、build、install 操作にジャンクションポイントを使用するには、Preferences >CMake >General に移動し、Use junctions for CMake configuration and build operations を選択します。

ビルドシステムは、ジャンクションポイントを通してプロジェクトのコンフィギュレーション、コンパイル、インストールを行い、コマンドラインコマンドを短くします。
環境変数の設定
Qt Creator はジャンクションポイントをC:\ProgramData\QtCreator\Links に保存します。別のパスを使用するには、QTC_CMAKE_JUNCTIONS_DIR 環境変数の値として設定します。
MD5 ハッシュ・キーの長さをデフォルトの 32 から短くするには、QTC_CMAKE_JUNCTIONS_HASH_LENGTH 環境変数を設定します。
How toも参照してください: CMakeでビルドする。
Copyright © The Qt Company Ltd. and other contributors. 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.