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?
source share