リモート Linux デバイス上でのアプリケーションのビルド
一般的な Linux デバイス用のアプリケーションのビルドに加えて、デバイス上のツール チェインを使用してデバイス上のアプリケーションをビルドすることもできます。
リモート Linux デバイスでアプリケーションをビルドするには
- Preferences (環境設定)] >Devices >Devices を開き、Add を選択してリモート Linux デバイスを追加します。
- Preferences >CMake >Tools と進み、Add を選択します。
- Path で、Browse (macOS ではChoose ) のドロップダウンメニューからRemote を選択し、リモート Linux デバイス上の CMake 実行可能ファイルへのパスを追加します。
- Preferences >Kits >Qt Versions に移動し、Shift を押しながらAdd ボタンを選択して、リモート Linux デバイス上の Qt バージョンを追加します。
- Preferences >Kits >Compilers に移動し、Add でコンパイラ・タイプを選択します。
- C compiler path で、Browse (macOS ではChoose ) のドロップダウンメニューからRemote を選択し、リモート Linux デバイス上のコンパイラへのパスを追加します。
- Preferences >Kits に進み、デバイス上でビルドするためのキットを追加します。
- 上記で追加したデバイス、CMake ツール、Qt バージョン、コンパイラを選択します。
- Run device とBuild device のType で、remote Linux device を選択します。Device で、実行およびビルドする実際のデバイスを選択します。
- ビルド設定を指定するには
- デバイス用に開発したいアプリケーションのプロジェクトを開きます。
- Projects >Build & Run を選択し、上記で指定したキットをアクティブにします。
- Run Settings で実行設定を指定します。通常はデフォルト設定を使用できます。
- プロジェクトを実行すると、Qt Creator がDeploy Settings で指定されたアプリケーションをデプロイします。
CMake ツールの追加」、「How To: Develop for remote Linux」、「How To: Manage Kits」、「Developing for Remote Linux Devices」、「Remote Linux Deploy Configuration」、「Remote Linux Run Settings」も参照して ください。
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.