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

ndk的配置是必须的吗? #1

Open
mrchenmo opened this issue Apr 24, 2017 · 11 comments
Open

ndk的配置是必须的吗? #1

mrchenmo opened this issue Apr 24, 2017 · 11 comments

Comments

@mrchenmo
Copy link

ndk {
abiFilters 'armeabi-v7a','x86'//or armeabi、arm64-v8a、x86
}
我加了这句话后,项目里的其他.so包就会报错。

@Sunzxyong
Copy link
Owner

这只是示例,根据你项目支持的abi来filter

@Sunzxyong
Copy link
Owner

大多数项目只需兼容armeabi即可

@mrchenmo
Copy link
Author

@Sunzxyong 哦哦这个我知道,我的意思是这个abiFilters可以不要吗?我在Gradle里不配置这句话可以吗

@Sunzxyong
Copy link
Owner

不行,库中已包含除了mips abi的so,如需不想添加abiFilters,会出一个no-abi的版本

@mrchenmo
Copy link
Author

@Sunzxyong 可以,谢谢。

@Sunzxyong
Copy link
Owner

同时建议加上这个配置,对你的项目来说是件好的事情,这可以避免以后你的项目依赖一些三方sdk出现abi不兼容异常

@gavinliu
Copy link

为什么不公共开 tiny.so 的源码?

@MichaelJokAr
Copy link

既然选择开源了,为什么不开源c源码呢

@Sunzxyong
Copy link
Owner

so代码其实很简单,就没与tiny一起整理,可以参考这个样例代码,标准的jpeg压缩过程,样例代码已经上传:sample。其中对RGB_565与ARGB_8888做了转换,统一保存为RGB_888,转换方式已经在我的另外一篇博客已经说了:也谈图片压缩,关于libjpeg-turbo的介绍和编译可以看齐官方介绍。如果想尝试和了解jpeg的详细压缩过程,可以自己动动手。

@cjcj125125 cjcj125125 mentioned this issue Apr 29, 2017
@carozhu
Copy link

carozhu commented Jul 8, 2017

为什么调用压缩没callback回来。难道哪里姿势错了?是参考说明一步一步来的。请问错在哪里了

@mrchenmo
Copy link
Author

@carozhu 我用了是好的,正常。你贴下代码啊

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

5 participants