Reputation: 678
I built a dynamic library (and a static) following the guide on https://wiki.openssl.org/index.php/Android
However, I am stuck now and I don't know what to do next. The next step in the guide is "Install the OpenSSL Library" which I did, and there were no errors. Next step is "Compile and Link against the Library" and I think this is the point where I need help with it, because I have to do it with the Android Studio 2.3.3
How can I make Android Studio 'find' the library and the header files location
Anyone can help?
Upvotes: 0
Views: 110
Reputation: 10729
What you need to do varies on your actual project. Do you have a pointer to your own code?
The best advice I can give is to take a look at a project which also uses NDK. Here is FreeRDP which actually also uses SSL: https://github.com/FreeRDP/FreeRDP/tree/master/client/Android/Studio
You have to wire up stuff, take a look at the .h
and .c
files here https://github.com/FreeRDP/FreeRDP/tree/master/client/Android
More importantly:
Follow some of these functions along the codebase. As for SSL in the end it doesn't matter as much how much you install it on your host development environment, but rather it matters how it'll be packaged with the Android app, and how it will be loaded. For example if you use OpenSSL as is, depending on the actual phone it may load the OpenSSL which is part of the system and not what is packaged with the app. https://github.com/FreeRDP/FreeRDP/issues/3631
Upvotes: 1