openstf/android-libjpeg-turbo

Undefined reference to jinit_read_bmp

Opened this issue ยท 5 comments

FAILED: cmd.exe /C "cd . && D:\Android-dev\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=D:/Android-dev/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android-dev/android-ndk-r16b/sysroot -fPIC -isystem D:/Android-dev/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=15 ..."
turbojpeg.c:1998: error: undefined reference to 'jinit_read_bmp'
turbojpeg.c:2002: error: undefined reference to 'jinit_read_ppm'
turbojpeg.c:2090: error: undefined reference to 'jinit_write_ppm'
turbojpeg.c:2086: error: undefined reference to 'jinit_write_bmp'

how to config no use ppm and bmp support?

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.86. Please mark this comment with ๐Ÿ‘ or ๐Ÿ‘Ž to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

maybe add CFLAGS like:

LOCAL_CFLAGS +=
...
-DPPM_SUPPORTED=1
-DBMP_SUPPORTED=1 \

Is there any solution to this?

Is there any solution to this?

refer my last comment.

I had the same error and fixed it by editing jni\vendor\libjpeg-turbo\Android.mk.
I added:

	$(SOURCE_PATH)/cdjpeg.h \
	$(SOURCE_PATH)/rdbmp.c \
	$(SOURCE_PATH)/wrbmp.c \
	$(SOURCE_PATH)/rdppm.c \
	$(SOURCE_PATH)/wrppm.c \

to LOCAL_SRC_FILES at line 175.