with openCV 2.4.X I had no problem using turbo-libjpeg I've used the library as shared library: Android.mk includes- LOCAL_C_INCLUDES += ../../libjpeg-turbo and include $(BUILD_SHARED_LIBRARY) when I upgrade to openCV I get compilation error after runing NDK-BUILD i get compilation errors below. from openCV 3.1 Android.mk file I can see that libjpeg is included and the library is included as statuc library under native->libs, how can I set libjpeg to be include with openCV? error: undefined reference to 'jpeg_CreateDecompress' error: undefined reference to 'jpeg_stdio_src' error: undefined reference to 'jpeg_read_header' error: undefined reference to 'jpeg_start_decompress' error: undefined reference to 'jpeg_read_scanlines' error: undefined reference to 'jpeg_finish_decompress' error: undefined reference to 'jpeg_destroy_decompress' error: undefined reference to 'jpeg_std_error' error: undefined reference to 'jpeg_CreateDecompress' error: undefined reference to 'TIFFOpen' error: undefined reference to 'TIFFWriteEncodedStrip'