このページでは

Android パッケージに外部ライブラリを追加する

Qt Creator は、アプリケーションが使用する Qt ライブラリを自動的に検出し、依存関係として追加します。

外部ライブラリをアプリケーションのライブラリフォルダにコピーし、起動時にロードするには、次の手順に従います:

  1. Projects >Build Settings >Build Android APK に移動し、Details を選択します。

    ProjectsのBuild SettingsタブにあるBuild Android APKステップ

  2. Additional Libraries で、追加するライブラリを選択します。

OpenSSLライブラリの追加

OpenSSLライブラリを追加するには、Additional Libraries グループでInclude prebuilt OpenSSL libraries を選択します。

これにより、Preferences >SDKs >Android OpenSSL Settings で指定したOpenSSLインクルード・プロジェクトが追加されます。これは qmake と CMake の両方のプロジェクトで機能します。

SDKの環境設定のAndroidタブ

また、必要なlibssl.solibcrypto.so ライブラリのパスをAdditional Libraries フィールドに手動で追加することもできます。

How toも参照してください: Android 用の開発」および「Android 用の開発」も参照してください。

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.