how to build libjpeg for ndk use

为君一笑 提交于 2019-12-05 01:18:16

问题


I download libjpeg-8d source code. I want to compile it to libjpeg.so which could be used in android ndk. Because ndk use arm architecture, but the gcc of my PC is x86 architecture. So when I use gcc to compile out libjpeg.so and put it into jni folder. It shows file format can not recorgnize when use ndk-build. So how to build correct libjpeg.so for ndk?


回答1:


You can find libjpeg 8d with an Android makefile here: https://github.com/folecr/jpeg8d

Alternatively, consider using libjpeg-turbo from git://git.linaro.org/people/tomgall/libjpeg-turbo/libjpeg-turbo.git



来源:https://stackoverflow.com/questions/12294709/how-to-build-libjpeg-for-ndk-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!