Podmanデバイス上でビルドする
Podman向けのアプリケーションをビルドするだけでなく、Podman のツールチェーンを使用して Podman上でアプリケーションをビルドすることもできます。
注: Podmanデバイス向けの開発を行うには、Dockerプラグインを有効にしてください 。
Podmanデバイス上でアプリケーションをビルドするには:
- Preferences >Devices >Devices にアクセスし、「Add 」を選択して Podman デバイスを追加します。
- Preferences >CMake >Tools に移動し、「Add 」を選択します。
- Path で、Browse (macOS ではChoose )のドロップダウンメニューからRemote を選択し、Podman デバイス上の CMake 実行ファイルへのパスを追加します。
- Preferences >Kits >Qt Versions に移動し、Shift キーを押したまま「Add 」ボタンを選択して、Podman デバイス上の Qt バージョンを追加します。
- Preferences >Kits >Compilers に移動し、「Add 」でコンパイラの種類を選択します。
- C compiler path で、Browse (macOS ではChoose )のドロップダウンメニューから「Remote 」を選択し、Podman デバイス上のコンパイラのパスを追加します。
- Preferences >Kits に移動し、デバイス上でビルドするためのキットを追加します。
- 上記で追加したデバイス、CMakeツール、Qtバージョン、およびコンパイラを選択します。
- Type の「Run device 」および「Build device 」で、「Podman device 」を選択します。「Device 」で、実行およびビルドを行う実際のデバイスを選択します。
- ビルド設定を指定するには:
- そのデバイス向けに開発するアプリケーションのプロジェクトを開きます。
- 「Projects 」>「Build & Run 」を選択し、上記で指定したキットを有効にします。
- 「Run Settings 」に移動し、実行設定を指定します。通常は、デフォルト設定を使用できます。
- プロジェクトを実行すると、Qt Creator は「Deploy Settings 」で指定されたとおりにアプリケーションをデプロイします。
「CMake ツールの追加」、「プラグインの有効化と無効化」、「Podman 向けの開発方法」、 「キットの管理方法」、および「 Podman 向けの開発」も参照してください 。
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.