https://github.com/kdab/android_openssl
OpenSSL scripts and bins for Android (useful for Qt on Android apps)
https://github.com/kdab/android_openssl
Last synced: 22 days ago
JSON representation
OpenSSL scripts and bins for Android (useful for Qt on Android apps)
- Host: GitHub
- URL: https://github.com/kdab/android_openssl
- Owner: KDAB
- License: apache-2.0
- Created: 2019-01-16T10:35:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T13:07:50.000Z (2 months ago)
- Last Synced: 2025-04-01T12:00:09.085Z (29 days ago)
- Language: C
- Size: 165 MB
- Stars: 332
- Watchers: 30
- Forks: 154
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android OpenSSL support for Qt
OpenSSL scripts and binaries for Android (useful for Qt Android apps)In this repo you can find the prebuilt OpenSSL libs for Android, a QMake include project `.pri` file that can be used integrated with Qt projects, and a `.cmake` file for CMake based projects.
The following directories are available
* `ssl_3`: for Qt 6.5.0+.
* `ssl_1_1`: for Qt Qt 5.12.5+, 5.13.1+, 5.14.0+, 5.15.0+, Qt 6.x.x up to 6.4.x## How to use it
### QMake based projects
To add OpenSSL to your QMake project, append the following to your `.pro` project file:```
android: include(/android_openssl.cmake)
```Then
```
qt_add_executable(your_target_name ..)
qt_add_executable(your_second_target_name ..)if (ANDROID)
add_android_openssl_libraries(your_target_name your_second_target_name)
endif()```
## Build Script
The build script `build_ssl.sh` can be used to rebuild the OpenSSL libraries. Since specific
versions might depend or work better with specific NDK versions, the OpenSSL/NDK version
combinations are defined in the script. Before running the script, check that the NDK paths
are correct for your environment.### Build Prerequisites
The build script was tested against `bash` and `zsh` on Linux and macOS.