Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to include libjpeg in OpenCV 3.1 Android

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'

how to include libjpeg in OpenCV 3.1 Android

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 3.1 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'

how to include libjpeg in OpenCV 3.1 Android

with openCV 2.4.X I had no problem using turbo-libjpeg I've used the library as shared library: library:

Android.mk includes- 
LOCAL_C_INCLUDES += ../../libjpeg-turbo and include $(BUILD_SHARED_LIBRARY)

when I upgrade to openCV 3.1 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? 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'

'TIFFWriteEncodedStrip'

how to include libjpeg in OpenCV 3.1 Android

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 3.1 I get compilation error below after runing NDK-BUILD i get compilation errors below. NDK-BUILD. from openCV 3.1 Android.mk file I can see that libjpeg is included and not included. the library is included as statuc library static lib can be found 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'