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

请教Android中xxx_java.so 文件是怎么获得的?我编译源码只能获得xxx.so #17

Open
h3clikejava opened this issue Apr 12, 2021 · 4 comments

Comments

@h3clikejava
Copy link

Demo中只提供了v7a的xxx_java.so文件,我需要arm-V8a的。翻遍全网也找不到_java.so的编译方法,谁能告诉我吗?

@vincent-winner
Copy link

每个项目里都有adnroid/jni文件夹,里边有两个文件Android.mk和Application.mk。命令行进入jni这个目录,确保android-ndk已经被安装,之后执行 ndk-build -j`cat /proc/cpuinfo | grep 'cpu cores' | wc -l` 编译库,编译完的库在android的子目录libs下

@h3clikejava
Copy link
Author

你真的有编译过吗?编译完之后明明只有几个.so文件,没有供Java层调用的*_java.so

@watt1010
Copy link

自己写了一个cmake版本的JNI,可以放到AS里面编译一下,https://github.com/watt1010/Seetaface6JNI_cmake

@userTTG
Copy link

userTTG commented Mar 25, 2022

这个问题解决了没,同样适配v8a

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

4 participants