Unsolved Android - How to install .so file?
-
from Android list I got a link to: https://github.com/orangefour/android-openssl
cloned this repo, modified pathes in .pri
build and run app on Android 7 and it works - so I can go on :)
but this way is no solution for my projects because prebuilt .so are used
would be a security holeso I'm still waiting for an answer HowTo install openssl on OSX following https://github.com/orangefour/android-openssl
-
finally did it the secure way and built from openssl sources on OSX :)
used the .sh scripts from https://github.com/orangefour/android-openssl
in Terminal:
cd <path/to/scripts> chmod 755 ./build-all-arch.sh chmod 755 ./setenv-android-mod.sh export ANDROID_NDK_ROOT=/daten/_android/android-ndk-r10e export OPENSSL_VERSION="openssl-1.0.2k" ./build-all-arch.sh
inside projects adding a .pri pointing to the .so files:
android { ANDROID_EXTRA_LIBS += $$PWD/my/path/to/prebuilt/armeabi-v7a/libcrypto.so ANDROID_EXTRA_LIBS += $$PWD/my/path/to/android-openssl/prebuilt/armeabi-v7a/libssl.so }
will blog about in detail
-
-
@ekkescorner Thanks for sharing !
-
Hi, could you share the .so files?
I cant't compiled them, I'm in a windows box.thanks
-
@Tiago-Torre-do-Vale take a look at https://github.com/orangefour/android-openssl - there are .so files
from my POV it's not recommended to use prebuilt .so files for libs like ssl and crypto.
the scripts should also work on windows. you should have installed cygwin or so.
I'm doing all my dev work on osx but I'm sure others will help you to make the .sh work on windows -
Hi, thanks !!!
I managed to work with the prebuilt. -
@Tiago-Torre-do-Vale great to hear
Attention: APP can randomly crash if executing some requests via QNAM
I opened another tread on this: https://forum.qt.io/topic/77150/qt-5-8-qnam-openssl-crash-openssl_threads -
Hi,
I did libcrypt.so and libssl.so using ./Configure shared android because ./Configure shared android-armv7 said that target was not existing.
I include the .so files in my Qt Project but still have crach with XMLHttpRequest.Get openSSL with android or android-armv7 change something?
-
Hi!
A few days ago I compiled libcrypto and libssl for android (arm-linux-androideabi) because android 7 does not provide access to openssl.
You can find the .so files here:
https://github.com/bkweb/openssl-1.0.2k-prebuilt-for-androidIn the README.md file I give some instructions for including the files in a Qt-project and how to view the version of the openssl suite in use.
The Google App Store accepts my apps with these files.Best regards,
Björn