Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to jinit_read_bmp #15

Open
guanglefeng opened this issue Aug 16, 2019 · 5 comments
Open

Undefined reference to jinit_read_bmp #15

guanglefeng opened this issue Aug 16, 2019 · 5 comments
Labels

Comments

@guanglefeng
Copy link

guanglefeng commented Aug 16, 2019

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 issue-label-bot bot added the bug label Aug 16, 2019
@issue-label-bot
Copy link

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.

@guanglefeng
Copy link
Author

maybe add CFLAGS like:

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

@kaushikrw
Copy link

Is there any solution to this?

@guanglefeng
Copy link
Author

Is there any solution to this?

refer my last comment.

@MichalDutka
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants