问题描述
我下载的libjpeg-8D源$ C $ C。我想编译它libjpeg.so可能在Android的NDK中使用。由于NDK采用ARM架构,但我的电脑的GCC是x86架构。所以,当我使用gcc编译出来libjpeg.so,放入JNI文件夹中。它显示的文件格式不能recorgnize时使用NDK建造。因此,如何建立正确的libjpeg.so的NDK?
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?
推荐答案
您可以找到的libjpeg 8D有一个Android的Makefile这里: https://github.com/folecr/jpeg8d
You can find libjpeg 8d with an Android makefile here: https://github.com/folecr/jpeg8d
另外,考虑使用的libjpeg涡轮增压的的git://git.linaro.org/people/tomgall/libjpeg-turbo/libjpeg-turbo.git
Alternatively, consider using libjpeg-turbo from git://git.linaro.org/people/tomgall/libjpeg-turbo/libjpeg-turbo.git
这篇关于如何建立的libjpeg的NDK使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!