このページでは

ビルドプロセスのカスタマイズ

プロジェクトのビルド、デプロイ、および実行方法を設定するには、Preferences>Build & Run >General に進んでください。

ビルド&実行環境設定の「一般」タブ

デフォルトでは、Always deploy project before running it (1) とBuild the Whole Project (2) が選択されています。したがって、走る (Run) を選択すると、Qt Creator はプロジェクトファイルの変更をチェックし、必要に応じてプロジェクトのビルドとデプロイも行います。

アプリケーションをビルドせずにデプロイする場合や、実行するアプリケーションだけをビルドする場合は、Build before deploying で適切なオプションを選択します。

ビルド前にアプリケーションを停止する

デフォルトでは、プロジェクトを再構築する前に、プロジェクトに含まれるアプリケーションを停止します。

現在のアプリケーションだけを停止する、同じビルドディレクトリ内のアプリケーションを停止する、すべてのアプリケーションを停止する、またはアプリケーションを停止しないようにするには、Stop applications before building で適切なオプションを選択します。

jom を使用する

Windows では、nmake の代わりにjom を使用してプロジェクトをビルドすると、コンパイル処理を複数の CPU コアに分散させることができます。

jom を使用するには、次の手順に従います:

  1. Qt Downloads からjom をダウンロードします。
  2. Use jom instead of nmake を選択します。

ビルドに失敗した場合は、チェックボックスをオフにします。

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.