-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I am trying to upgrade the built-in libjpeg-turbo version from 1.5.0 to 2.1.0 to improve MJPEG decoding performance.
What I did:
1. Replaced the folder
-> Removed libjpeg-turbo-1.5.0
-> Extracted libjpeg-turbo-2.1.0 into the same directory under libuvccamera/src/main/jni/
2. Updated Android.mk in JNI root:
-> include $(PROJ_PATH)/libjpeg-turbo-2.1.0/Android.mk
3. In UVCCamera/Android.mk, changed:
-> LOCAL_SHARED_LIBRARIES += usb100 uvc jpeg-turbo210_static
4. In libjpeg-turbo-2.1.0/Android.mk, set:
-> LOCAL_MODULE := jpeg-turbo210_static
5. Updated UVCCamera.java:
-> System.loadLibrary("jpeg-turbo210");
**But still getting the problem like: **
The build fails with the following error:
Android NDK: Module UVCCamera depends on undefined modules: jpeg-turbo210
Even though:
-> jpeg-turbo210_static is defined in libjpeg-turbo's Android.mk
-> The Android.mk root file includes libjpeg-turbo-2.1.0/Android.mk before UVCCamera
-> System.loadLibrary("jpeg-turbo210") is called correctly
-> Clean builds and cache cleared
I also tried naming the module jpeg-turbo210 instead of jpeg-turbo210_static but the same error persists.
Request for Help:
-> What is the correct way to upgrade libjpeg-turbo from 1.5.0 to 2.1.0 in this project structure?
-> Do I need to change anything else in libuvc, libusb, or Application.mk?
-> Should I build .so files manually instead of using source-level inclusion?
-> Is there a minimal working example or branch where you’ve successfully used libjpeg-turbo 2.x?