Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

NDK r11 clang build error: undefined reference to isnanf/__isinff #138

Closed
rmtheis opened this issue Mar 10, 2016 · 7 comments
Closed

NDK r11 clang build error: undefined reference to isnanf/__isinff #138

rmtheis opened this issue Mar 10, 2016 · 7 comments
Labels

Comments

@rmtheis
Copy link
Owner

rmtheis commented Mar 10, 2016

[armeabi] SharedLibrary  : libtess.so
jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to 'isnanf'
jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to '__isinff'
jni/com_googlecode_tesseract_android/src/classify/mf.cpp:75: error: undefined reference to 'isnanf'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi/libtess.so] Error 1
@rmtheis rmtheis added the bug label Mar 10, 2016
@EfeVural
Copy link

hi ;
i have this error;i have to compile asap; if i use r10 may i walk around this bug?
Or is there any other solution?

@rmtheis
Copy link
Owner Author

rmtheis commented Mar 11, 2016

I don't see this bug when I build with NDK r10e. I only see it when I build with NDK r11.

@JongImLee
Copy link

I tried to compile tess-two with both of NDK and only worked on using NDK r10e.
I think some are deprecated in r11.
If you use it asap, download and install r10e through this link(http://stackoverflow.com/questions/6849981/where-do-i-find-old-versions-of-android-ndk)

@EfeVural
Copy link

Hi again;
thank you very much ; with r10e i have built too.

@GiovanniCardamone
Copy link

I Confirm, i have the same problem with architecture x86

[x86] Install : libtess.so => libs/x86/libtess.so jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to 'isnanf' jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to '__isinff' jni/com_googlecode_tesseract_android/src/classify/mf.cpp:75: error: undefined reference to 'isnanf' collect2: error: ld returned 1 exit status make: *** [obj/local/armeabi-v7a/libtess.so] Errore 1 make: *** Attesa per i processi non terminati.... jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to 'isnanf' jni/com_googlecode_tesseract_android/src/classify/featdefs.cpp:228: error: undefined reference to '__isinff' jni/com_googlecode_tesseract_android/src/classify/mf.cpp:75: error: undefined reference to 'isnanf' collect2: error: ld returned 1 exit status make: *** [obj/local/armeabi/libtess.so] Errore 1

only it works up to version r10e

@rmtheis
Copy link
Owner Author

rmtheis commented Mar 18, 2016

@rmtheis
Copy link
Owner Author

rmtheis commented Mar 26, 2016

android/ndk#44

brnhffmnn pushed a commit to brnhffmnn/tess-two that referenced this issue May 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants