How to build libjpeg to use ndk

I am downloading the source code of libjpeg-8d. I want to compile it in libjpeg.so, which can be used in android ndk. Since ndk uses the arm architecture, but the gcc of my computer is the x86 architecture. So when I use gcc to compile libjpeg.so and put it in the jni folder. It shows that the file format cannot recorgnize when using ndk-build. So, how to build libjpeg.so for ndk correctly?

+4
source share
1 answer

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

As an alternative, consider using libjpeg-turbo from git://git.linaro.org/people/tomgall/libjpeg-turbo/libjpeg-turbo.git

+6
source

Source: https://habr.com/ru/post/1432647/


All Articles