I need libjpeg-turbo for android ndk. Did anyone managed to compile it as .a (static) lib?
I have tried a few times, but it gave me a lot of errors only.
I need libjpeg-turbo for android ndk. Did anyone managed to compile it as .a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Install Android NDK. Following instructions were verified with r8b, older versions may have problems, I don’t know.
Get the Android sources for libjpeg-turbo from Benjamin Gaignard:
In the libjpeg-turbo directory created by git, edit file Android.mk: after line 70,
LOCAL_MODULE := libjpeg, add the following:Run ndk-build:
Profit!
PS: You may want the armeabi-v7a version:
Or compile for ARM, to improve performance, add to command line:
If your target has NEON support, add to command line:
UPDATE: to get it work with Android NDK r15 and later, remove all references to
libcutilsfrom Android.mk.