-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Build fails on Window windows-x86_64 #33
Comments
You're seeing this build failure because your tess-two directory is named "tess-two-master" instead of the default name "tess-two". |
I renamed the directory. |
Your directories should be E:\tess\tess-two It's working fine for me on 64bit Windows 8. Please reopen if the build consistently fails for you when you follow the build instructions exactly. |
You have to compile tess-two before eyes-two. And after you could try to compile your eyes two. |
what is used of eye-two.. |
I am getting the below error when I am trying to compile using ndk-build Android NDK: ERROR:D:/Personal/Work/Android/android-ndk-r10/sources/cxx-stl/gnu- Android NDK: Check that D:/Personal/Work/Android/android-ndk-r10/sources/cxx-stl |
@nigelt007 You need to download the 32-bit target NDK because it has the 4.8 toolchain. |
I had the same problem as @nigelt007 and @rmtheis's solution solved my problem. |
I have successfully built tess-two and now I'm trying to move forward to eyes-two. For some reason I'm getting the error message "No rule to make target I'm using x64 bit Mac. |
@rmtheis ,sir I am trying to do OCR demo in android Studio and I am following this tutorial http://www.codeproject.com/Tips/840623/Android-Character-Recognition and I have been following your guidelines over the internet ,I have successfully built ndk from command prompt for tess-two and eyes-two ,and then tried "android update project --path C:...\tess-two" according to the location. and I got an error "android is not recognized"....please help me out ,I venture in hope for your warm response . |
good day @Santosh-E-sig i had the same problem but i managed to find the solution. may i know which operating system are you using.. |
I am using windows 7 @moonash |
okay that is great news that's the one i am using too. click on the start button and then type android on the search section. hopefully you shoulf find an android batch file. you should then right click it and copy the path of that batch file.. The bactch file should be located in the located in the sdk\tools folder... after getting the path copy it and paste it to your environment variables. in the path variables. im online if you still need help.. |
@moonash I set the path for android as "D:\sdk\tools",this is the place where I have sdk for Android Studio ,I tried the command to update the tess-two project as "android update project --path C:\Users\User\Desktop\tess\tess-two" ,again I am getting different error now. Error:The project either has no target set or the target is invalid .please provide a --target to the 'android.bat update' command . i need help here |
@Santosh-E-sig do not worry you in the right direction. i had that error as well... now you need to add a target to the command we were given by @rmtheis. |
Another Problem again : |
confirm is this the command you wrote? anyways after adding the android.bat to your environmental variables did you close your command prompt and restart it? |
@moonash ..i am also facing the same problem |
@sid-dude have you followed the steps i have stated above. where are you stuck? |
you didnt put the -- before path |
@moonash >>> |
Thank you for the givin instrustions ,it worked out ,and I would further like to know how to get on the project further ,could you please help me out with some references |
@Santosh-E-sig you are welcome i am using this link for reference http://noviceandroiddeveloper.blogspot.com/2014/08/a-big-undertaking-ocr-using-tesseract.html?showComment=1427701490335 |
@moonash>> thankxx buddy....for your support |
Thanks for the Link ,If any further help needs then I will Contact you. 👍 |
Good evening there, my problem is even thought i made the changes suggested on the path system variable i am still getting the error "android is not recognized as an internal or external command, operable program or batch file." I tried to follow the steps you mention above but i cannot complete the "batch file" step you suggested since im working on windows 8.1 and the "Search" doesnt show any batch file. I would really appreciate some help since i've been struggling for a while now and im not really experienced on the ndk part of android. Thanks in advance and sorry for this small wall of text. |
hi @Nosqe follow the path to where you installed your android studio from there you then look for the android. bat like in my case |
@moonash first of all thanks for the quick response surprisingly enough when i tried to search that path you mentioned i realised that my --EDIT : I actually found the directory you were talking about and also the android. bat file. It seems that it was located to a hidden folder inside my "Users" section and i had to enable "Show hidden folders to reach it". The thing is now, im getting the error 'xcopy' is not recognized as an internal or external command, operable program or batch file. And right after that it spams some lines with "The system cannot find the path specified." |
To build eyes-two
F:\android\tess-two-master\eyes-two>ndk-build
[armeabi] Compile++ thumb: hydrogen <= clusterer.cpp
[armeabi] Compile++ thumb: hydrogen <= hydrogentextdetector.cpp
[armeabi] Compile++ thumb: hydrogen <= thresholder.cpp
[armeabi] Compile++ thumb: hydrogen <= utilities.cpp
[armeabi] Compile++ thumb: hydrogen <= validator.cpp
[armeabi] Compile++ thumb: hydrogen <= hydrogentextdetector.cpp
[armeabi] Compile++ thumb: hydrogen <= thresholder.cpp
[armeabi] Compile++ thumb: hydrogen <= jni.cpp
make.exe: *** No rule to make target
jni/../../tess-two/libs/armeabi/liblept.so ', needed by
obj/local/armeabi/libhydrogen.so'. Stop.The text was updated successfully, but these errors were encountered: