Why was this thread recently deleted?
I thought that the original was relevant enough, the LOCAL_C_INCLUDES begin with
~/mydroid/external/jpeg
and the LOCAL_LDLIBS includes
-L/home/kmanderson/mydroid/out/target/product/generic/system/lib -ljpeg
Under the Android build (e..g, ~/mydroid), there are no static (.a) versions of jpeg library, only shareable (.so) versions. Web searches on this error seem to suggest that components may be built with different ISO options -- such as the so-called "lossless" jpeg, and several others.
By pointing my ndk_build Android.mk to the Android diistribution's external/jpeg directory, I expected consistency, however my build is still inconsistent.
The Android NDK Stable APIs does not directly address libjpeg. Nor does it address libpng, a static library that I have incorporated and used successfully.
Interestingly, the only other module in the Android distro to call the jpeg_create_decompress(&cinfo) function is ~/mydroid/system/extras/tests/bionic/libc/other/test_jpeg.c -- but this particular test_jpeg.c file is omitted from the Android.mk file in its parent directory.
I'm still investigating other examples in the distro code tree... but this remains a problem for me at the present time.
-Kirk