-
Notifications
You must be signed in to change notification settings - Fork 17
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
请问下一下,是不是 ndk编译成so了,就可以直接在android java项目中用了? #1
Comments
抱歉,现在才看到这条消息!理论上来讲,ffmpeg编译出来的so库是每个人可以公用的,但是,不同的人可能对ffmpeg的需求不一样,将它的一些功能进行了剪裁。但是,编译出来的只是一个so库,有点
像我们平时说的jar包,但so库是c或者C++写的,这就需要用的JNI来链接。以前我们使用JNI都会在as中进行编译,在编译的时候会根据你的包名生成相应的文件,比如demo中我说不要复制的那三个(事实上
如果你知道这个文件的生成规律,也可以直接更改),不过我们现在都是用CMake方式+动态注册方法,从某种意义上讲,就是更加提高了“so库直接在java项目中的应用”性了!
在 2018年2月2日 下午4:19,Stony Zhang <notifications@github.com>写道:
… 如题,如果是这样,那为何大家不直接把自己编译好的ffmpeg编译好的so共享一下,然后写个使用说明,就可以了。不用大家都去自己编译了。
我猜测我理解是错误的,请帮忙澄清指正一下
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQmVCyDTn8-I3c2WKnu6uGcoTGauL9kXks5tQsUPgaJpZM4R206e>
.
|
请问如果我想要编译其他版本的包 该怎么改呢? 在android studio3.0上 |
如果你想编译其他库,只能自己按照网上的教程,一个一个配置,然后编译出来.
460817183 <notifications@github.com> 于2018年3月23日周五 上午11:43写道:
… 请问如果我想要编译其他版本的包 该怎么改呢? 在android studio3.0上
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQmVC7BI-7Rj-gt0HSTcM6Zx9Nv5HF_qks5thG9rgaJpZM4R206e>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如题,如果是这样,那为何大家不直接把自己编译好的ffmpeg编译好的so共享一下,然后写个使用说明,就可以了。不用大家都去自己编译了。
我猜测我理解是错误的,请帮忙澄清指正一下
The text was updated successfully, but these errors were encountered: