c++ - Integration issue to tess-two (Tesseract Tools for Android)library into an Android studio and build ndk -


i want import tess-two library in android studio , after compilation show error in ndk build. have tries solution given on stackoverflow. , execution failed task ':app:compiledebugndk' did not resolved issue. please suggest me doing wrong.

it show following error :

error:error: undefined reference 'isnanf'  error:error: undefined reference '__isinff' error:error: undefined reference 'isnanf' [arm64-v8a] install        : libtess.so => libs/arm64-v8a/libtess.so error:error: undefined reference 'isnanf' error:error: undefined reference '__isinff' error:error: undefined reference 'isnanf' [x86_64] install        : libjpgt.so => libs/x86_64/libjpgt.so error:error: linker command failed exit code 1 (use -v see invocation) error:error: linker command failed exit code 1 (use -v see invocation) make: *** [obj/local/armeabi-v7a/libtess.so] error 1  make: *** waiting unfinished jobs.... make: *** [obj/local/armeabi/libtess.so] error 1 make: leaving directory `d:/ocr/tess-two-master/tess-two-master/tess-two' :tess-two:ndkbuild failed  error:execution failed task ':tess-two:ndkbuild'. process 'command 'd:\sdk\sdk\ndk-bundle/ndk-build.cmd'' finished non-zero exit value 2   

it turns out root cause of error ndk r11 doesn't support android-8 (android 2.2.x), whereas ndk r10 did.

changing application.mk file use app_platform := android-9 fixes this.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -