이 페이지에서

안드로이드 패키지에 외부 라이브러리 추가하기

Qt Creator 는 애플리케이션이 사용하는 Qt 라이브러리를 자동으로 감지하여 종속성으로 추가합니다.

외부 라이브러리를 애플리케이션의 라이브러리 폴더에 복사하여 시작 시 로드하려면 다음과 같이 하세요:

  1. Projects > Build Settings > Build Android APK 로 이동하여 Details 을 선택합니다.

    프로젝트의 빌드 설정 탭에서 안드로이드 APK 빌드 단계

  2. Additional Libraries 에서 추가할 라이브러리를 선택합니다.

OpenSSL 라이브러리 추가하기

OpenSSL 라이브러리를 추가하려면 Additional Libraries 그룹에서 Include prebuilt OpenSSL libraries 을 선택합니다.

그러면 Preferences > SDKs > Android OpenSSL Settings 에서 지정한 OpenSSL 포함 프로젝트가 추가됩니다. 이 방법은 qmake 및 CMake 프로젝트 모두에서 작동합니다.

SDK 환경 설정의 Android 탭

Additional Libraries 필드에 필수 libssl.solibcrypto.so 라이브러리 경로를 수동으로 추가할 수도 있습니다.

방법도참조하세요 :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.