このページでは

Autotools

Autotools を使えば、単純な指示から、移植性が高く、完全で、自己完結型の GNU ビルドシステムを作成できます。

Qt Creator は、Autotools ビルドシステムを使用するプロジェクトを開くことができます。Qt Creator から直接、プロジェクトをビルドして実行することができます。

注: AutotoolsProjectManager プラグインを有効にしてください 。

Autotools プロジェクトの操作

Qt Creator で Autotools プロジェクトを扱うには:

  1. 「File 」>「Open Project 」を選択します。
  2. プロジェクト内のMakefile.am ファイルを選択します。Autotoolsプラグインを使用するには、この方法しかありません。
  3. ビルドディレクトリを選択します。現在、ソース内ビルドのみがサポートされています。
  4. 「Finish 」を選択します。「Qt Creator 」にはプロジェクトのツリー構造が表示されます。ルートノードにはプロジェクト名が表示され、その下にはすべてのプロジェクトファイルが一覧表示され、リストからそれらを開くことができます。

    「プロジェクト」および「ファイルシステム」のサイドバービューとエディタで開かれているautotoolsプロジェクト

  5. 「「実行」ボタン 」(Run )を選択すると、事前定義されたビルド手順(autogen.sh またはautoreconf 、configure 、およびmake )が実行されます。

    アプリケーションを初めて実行する際は、実行ファイルを選択する必要があります。

  6. autotools のビルドステップを確認および編集するには、[Projects ] > [Build Settings] を選択します。

    あらかじめ定義された autotools ビルド手順にパラメータを追加することができます。

    Autotools のビルド設定

「プラグインの有効化と無効化」も参照してください 。

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.