На цій сторінці

Додавання зовнішніх бібліотек до пакетів для Android

Qt Creator автоматично визначає, які бібліотеки Qt використовує додаток, і додає їх як залежності.

Щоб скопіювати зовнішні бібліотеки в папку бібліотек програми та завантажити їх під час запуску:

  1. Перейдіть до « Projects » > « Build Settings » > « Build Android APK » та виберіть « Details ».

    Створення APK-файлу для Android на вкладці «Налаштування збірки» у розділі «Проєкти»

  2. У розділі « Additional Libraries » виберіть бібліотеки, які потрібно додати.

Додавання бібліотек OpenSSL

Щоб додати бібліотеки OpenSSL, виберіть « Include prebuilt OpenSSL libraries » у групі « Additional Libraries ».

Це додає проект включень OpenSSL, який ви вказали в « Preferences » > « SDKs » > « Android OpenSSL Settings ». Це працює як для проектів qmake, так і для проектів CMake.

Вкладка «Android» у налаштуваннях SDK

Ви також можете вручну додати шляхи до необхідних бібліотек libssl.so та libcrypto.so у поле Additional Libraries.

Див. також «Як: Розробка для 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.