Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What i need to do - for use this Library in Android. using NDK. #90

Open
ricardorector opened this issue Nov 4, 2023 · 1 comment
Open

Comments

@ricardorector
Copy link

ricardorector commented Nov 4, 2023

Hello guys i want use this library in Android - but i dont know what i need to do for compile in crosscompiler using NDK

@igorbasko01
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants