What i need to do - for use this Library in Android. using NDK.
ricardorector opened this issue · 1 comments
Hello guys i want use this library in Android - but i dont know what i need to do for compile in crosscompiler using NDK
Hi,
I was able to get the compiled library from the WiringOP source code application in the source code of the orangepi android os.
The source code of the orangepi android os is located through this page: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-5B.html
Which basically is located on their Google Drive: https://drive.google.com/drive/folders/14efL7SWZ68CZCbUayngLL4iAtGQoV9a0
I downloaded all the tar.gz
files and extracted them, using the instructions that they provide in their manual, which basically are:
cat Android_12.tar.gz0* > Android_12.tar.gz
tar -xvf Android_12.tar.gz
After extraction the WiringOP application could be found in packages/app/WiringOP
. Inside of this folder, you can find the source code of the app itself, as well the source code for the wiringOP
library, and the Android.mk
file for building the library.
What I basically did to generate the .so
files, was to open the package/app/WiringOP
in Android Studio and build the .apk
, which on completion contained inside the .so
files that I was able to extract and move to my other projects.
Also in the source of the WiringOP
android app, you can see an example of how this library is used.
Hope it helps with your question.