@renard314 thank you for the time you spent this week-end.
I'm sorry but I think now we have some git problems: I cannot use this command on terminal git clone [email protected]:renard314/textfairy.git I have got this error message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So I download the zip from the repository page and than
git clone https://github.com/renard314/tess-two.git
now I can sync the project but I have an error when type ./gradlew assembleDebug command:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy-master/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/libimage_processing_jni.so] Error 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
have I missed something?
I try to run with /Library/android-ndk-r15c
Also I try to cloe from android studio VCS checkout from version controll.
git submodule init
git submodule update
./gradlew assembleDebug
still the same error
/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/image_processing.cpp:237: error: undefined reference to 'boxGetGeometry'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/libimage_processing_jni.so] Error 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 6.448 secs
Stopped 0 worker daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:externalNativeBuildDevelopDebug'.] from daemon DaemonInfo{pid=1172, address=[a9befcb3-e159-4947-942d-b1244b6ef664 port:49290, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1502124122698, context=DefaultDaemonContext[uid=60101ad1-d2cd-4480-b728-c0c7b092c554,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home,daemonRegistryDir=/Users/giuliopettenuzzo/.gradle/daemon,pid=1172,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=512m,-Dfile.encoding=UTF-8,-Duser.country=IT,-Duser.language=it,-Duser.variant]} (build should be done).
MacBook-Pro-di-Giulio:textfairy giuliopettenuzzo$
if I compile from the editor I see this error:
Information:Gradle tasks [:app:generateDevelopDebugSources, :app:prepareDevelopDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDevelopDebugAndroidTestSources, :app:compileDevelopDebugSources, :app:compileDevelopDebugUnitTestSources, :app:compileDevelopDebugAndroidTestSources, :tess-two:tess-two:generateDebugSources, :tess-two:tess-two:mockableAndroidJar, :tess-two:tess-two:prepareDebugUnitTestDependencies, :tess-two:tess-two:generateDebugAndroidTestSources, :tess-two:tess-two:compileDebugSources, :tess-two:tess-two:compileDebugUnitTestSources, :tess-two:tess-two:compileDebugAndroidTestSources]
/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/SkewCorrector.cpp
Error:(82) undefined reference to 'boxaGetBox'
/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/pageseg.cpp
Error:error: undefined reference to 'pixCloseBrick'
Error:(37) undefined reference to 'pixFindSkewSweep'
Error:(56) undefined reference to 'numaGetFValue'
Error:(269) undefined reference to 'pixConvertRGBToLuminance'
Error:(230) undefined reference to 'pixAnd'
Error:(47) undefined reference to 'pixConnComp'
Error:error: undefined reference to 'pixCloseBrickDwa'
Information:BUILD FAILED
Error:(83) undefined reference to 'boxAdjustSides'
Error:(258) undefined reference to 'pixGetDepth'
Error:(51) undefined reference to 'boxaGetCount'
Error:(70) undefined reference to 'pixaDestroy'
/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/image_processing.cpp
Error:(60) undefined reference to 'boxDestroy'
Error:(38) undefined reference to 'pixRenderHashBoxArb'
Error:(71) undefined reference to 'boxaDestroy'
Error:(43) undefined reference to 'pixRotate'
/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/binarize.cpp
Error:error: undefined reference to 'pixConnCompBB'
Error:error: undefined reference to 'numaSetValue'
Error:(17) undefined reference to 'pixRotate'
Error:(39) undefined reference to 'boxDestroy'
Error:(32) undefined reference to 'boxaGetCount'
Error:(237) undefined reference to 'pixDisplay'
Error:(79) undefined reference to 'boxaGetCount'
Error:(67) undefined reference to 'numaGetRankValue'
/Library/android-ndk-r15c/toolchains/x86-4.9/prebuilt/darwin-x86_64/i686-linux-android/bin/ld
Error:error: linker command failed with exit code 1 (use -v to see invocation)
Error:(24) undefined reference to 'LeptMsgSeverity'
Error:(48) undefined reference to 'pixaCountPixels'
Error:error: undefined reference to 'pixMorphCompSequence'
Error:(201) undefined reference to 'pixGetPixel'
Error:error: undefined reference to 'pixReduceBinary2'
Error:(237) undefined reference to 'boxGetGeometry'
Error:error: cannot find -llept
Error:error: undefined reference to 'boxaDestroy'
Error:(54) undefined reference to 'boxaGetBox'
Error:(37) undefined reference to 'boxaGetBox'
Error:(203) undefined reference to 'pixTilingPaintTile'
Information:Total time: 16.302 secs
Information:307 errors