リモートのLinuxデバイスに接続する

汎用LinuxデバイスとQt Creator 間の接続を確立し、それらのデバイス上でアプリケーションを実行、デバッグ、および分析します。

Qt Creator とリモートLinuxデバイス間の接続を設定するには:

  1. デバイスが IP アドレス経由でアクセス可能であることを確認してください。
  2. Preferences > [Kits ] > [Qt Versions] に移動します。
  3. Add 」を選択し、組み込みLinux用のQtバージョンを追加します。
  4. Preferences >Kits >Compilers に移動します。
  5. Add を選択して、アプリケーションをビルドするためのコンパイラを追加します。
  6. Preferences >Devices >Devices に移動します。
  7. Add 」を選択して、リモート Linux デバイスを追加します。
  8. Preferences >Kits に移動します。
  9. Add 」を選択して、そのデバイス向けのビルドキットを追加します。
  10. 上記で追加した Qt バージョン、コンパイラ、およびデバイスを選択します。
  11. Run device 」で、「Type 」の「Remote Linux Device 」を選択し、次に「Device 」で実行する実際のデバイスを選択します。
  12. ビルド設定を指定するには:
    1. そのデバイス向けに開発するアプリケーションのプロジェクトを開きます。
    2. Projects 」>「Build & Run 」を選択し、上記で指定したキットを有効にします。
  13. Run Settings 」に移動し、実行設定を指定します。通常はデフォルト設定を使用できます。
  14. プロジェクトを実行すると、Qt Creator は「Deploy Settings 」で指定されたとおりにアプリケーションをデプロイします。

「手順: リモート Linux 向けの開発」「手順: キットの管理」、および「リモート Linux デバイス向けの開発も参照してください

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.