I am using libjpeg ver.9b (static lib) in my JNI code. I have compiled everything successfully and got it running, until I touches the jpeg part. The console reads:
JPEG parameter struct mismatch: library thinks size is 664, caller expects 632
I have searched around and found most people pointing to duplicated shared libraries. I think I may rule this out as I have uninstalled all libjpeg libraries on the machine (no libjpeg.so remaining) and linked it statically into my code. The libjpeg library was built on the same machine following Compiling libjpeg and with CFLAGS="-O3 -fPIC". Any ideas where the issue is and how should I fix it?