Boot to Qt デバイスを接続する
以下のデバイス間の接続を作成する Boot to Qt デバイスとQt Creator の間に接続を作成し、アプリケーションの実行、デバッグ、および分析を行います。
注: Boot to Qt プラグインを使用するには、有効にする必要があります 。
Qt Creator とBoot to Qt デバイス間の接続を設定するには:
- デバイスの IP アドレスにアクセスできることを確認するか、USB を使用してデバイスを接続します。
- Preferences >Kits >Qt Versions に移動します。
- 「Add 」を選択し、Boot to Qt 用のQtバージョンを追加します。
- 「Preferences 」 > 「Kits 」 > 「Compilers 」の順に移動します。
- Add を選択して、アプリケーションをビルドするためのコンパイラを追加します。
- 「Tools 」> Flash Boot to Qt 「Boot to Qt Flashing Wizard」を使用して、Boot to Qt イメージをSDカードに書き込みます。
Boot to Qt フラッシュウィザード" src="images/qtcreator-boot2qt-flashing-wizard.png" title="Boot to Qt フラッシュウィザード"/>
- ウィザードの指示に従って、SDカードにイメージを書き込みます。
- Preferences >Devices >Devices に移動します。
- 「Add 」を選択して、Boot to Qt デバイスを追加します。
Qt Creator USBで接続されたデバイスは自動的に検出されます。
- 「Preferences 」 > 「Kits 」の順に移動します。
- 「Add 」を選択して、そのデバイス用のビルドキットを追加します。
- Qt のバージョン、コンパイラ、および上記で追加したデバイスを選択します。
- 「Run device 」で、「Type 」から「Boot2Qt Device 」を選択し、「Device 」で実行する実際のデバイスを選択します。
- ビルド設定を指定するには:
- そのデバイス向けに開発したいアプリケーションのプロジェクトを開きます。
- 「Projects 」>「Build & Run 」に移動し、上記で指定したキットを有効にします。
- 「Run Settings 」に移動し、実行設定を指定します。通常は、デフォルト設定を使用できます。
- プロジェクトを実行すると、Qt Creator は「Deploy Settings 」で指定されたとおりにアプリケーションをデプロイします。デフォルトでは、Qt Creator がアプリケーションファイルをデバイスにコピーします。
「SSH 接続の構成」、「SSH キーの生成」、「プラグインの有効化と無効化」、「Boot to Qt 向けの開発方法 」、「キットの管理方法」、および「 Boot to Qt デバイス向けの開発 」も参照してください 。
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.