Coder Social home page Coder Social logo

Comments (29)

rmtheis avatar rmtheis commented on August 17, 2024

You're seeing this build failure because your tess-two directory is named "tess-two-master" instead of the default name "tess-two".

from tess-two.

gwatqzyuan avatar gwatqzyuan commented on August 17, 2024

I renamed the directory.
To build eyes-two fails
E:\tess-two\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 byobj/local/armeabi/libhydrogen.so'. Stop.

from tess-two.

rmtheis avatar rmtheis commented on August 17, 2024

Your directories should be

E:\tess\tess-two
E:\tess\eyes-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.

from tess-two.

lupsyn avatar lupsyn commented on August 17, 2024

You have to compile tess-two before eyes-two.
cd tess
cd tess-two
ndk-build

And after you could try to compile your eyes two.

from tess-two.

Annyjain29 avatar Annyjain29 commented on August 17, 2024

what is used of eye-two..
In which purpose we can use eyes-two project..
Please Explain..
Is that project is help me for the OCR...
waiting for your reply guys

from tess-two.

nigelt007 avatar nigelt007 commented on August 17, 2024

I am getting the below error when I am trying to compile using ndk-build
I tried to compile tess-two first.

Android NDK: ERROR:D:/Personal/Work/Android/android-ndk-r10/sources/cxx-stl/gnu-
libstdc++/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file

Android NDK: Check that D:/Personal/Work/Android/android-ndk-r10/sources/cxx-stl
/gnu-libstdc++/4.8/libs/armeabi/thumb/libgnustl_static.a exists or that its pat
h is correct
D:/Personal/Work/Android/android-ndk-r10/build/core/prebuilt-library.mk:45: ***
Android NDK: Aborting . Stop.

from tess-two.

rmtheis avatar rmtheis commented on August 17, 2024

@nigelt007 You need to download the 32-bit target NDK because it has the 4.8 toolchain.

from tess-two.

simonedstromsi avatar simonedstromsi commented on August 17, 2024

I had the same problem as @nigelt007 and @rmtheis's solution solved my problem.

from tess-two.

annaleena avatar annaleena commented on August 17, 2024

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 jni/../../tess-two/libs/armeabi/liblept.so', needed byobj/local/armeabi/libhydrogen.so'". I have no idea why this error occurs because I have followed the exact build directions. My directory hierarchy is:
tess/eyes-two
tess/tess-two

I'm using x64 bit Mac.

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

@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 .

from tess-two.

moonash avatar moonash commented on August 17, 2024

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..

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

I am using windows 7 @moonash
what should i do now ?

from tess-two.

moonash avatar moonash commented on August 17, 2024

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..

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

@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

from tess-two.

moonash avatar moonash commented on August 17, 2024

@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.
type the follwoing comand
android update project --target 1 --path "C:\ .....tess-two" to your tess-two folder that you want to update".
after that your project should update.

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

Another Problem again :
Error:Updates an Android project "must already have an AndroidManifest.xml ",where could I have made mistake although I am following your given steps.

from tess-two.

moonash avatar moonash commented on August 17, 2024

confirm is this the command you wrote?
android update project --target 1 --path
after path you then write the path to the tess-two project that you want to update....

anyways after adding the android.bat to your environmental variables did you close your command prompt and restart it?
can you send me a screen shot of your command prompt if you don't mind

from tess-two.

sid-dude avatar sid-dude commented on August 17, 2024

@moonash ..i am also facing the same problem

from tess-two.

moonash avatar moonash commented on August 17, 2024

@sid-dude have you followed the steps i have stated above. where are you stuck?

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

all the criterias I have taken correctly,My Screen shot of Command prompt is like this

ocr

from tess-two.

moonash avatar moonash commented on August 17, 2024

you didnt put the -- before path
the syntax is
android update project --target 1 --path

from tess-two.

sid-dude avatar sid-dude commented on August 17, 2024

@moonash >>>
i was trying to import the OCR GitHub projects of RmTheis directly.....but i was finding difficulty as it was asking for downloading android sdk 8....presently i"m downloading it......
Besides this presently have successfully built ndk from command prompt for tess-two and eyes-two and following the steps u have provided to @Santosh-E-sign
so can we directly import the project.......without setting all this???#moonash

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

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

from tess-two.

moonash avatar moonash commented on August 17, 2024

@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
@sid-dude its is fine anyways just send a message when you need help if i am online i will help you.

from tess-two.

sid-dude avatar sid-dude commented on August 17, 2024

@moonash>> thankxx buddy....for your support

from tess-two.

Santosh-E-sig avatar Santosh-E-sig commented on August 17, 2024

Thanks for the Link ,If any further help needs then I will Contact you. 👍

from tess-two.

Nosqe avatar Nosqe commented on August 17, 2024

@moonash

Good evening there,
i have also been trying for some time now, to work on the OCR demo provided by this tutorial
http://www.codeproject.com/Tips/840623/Android-Character-Recognition

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.

from tess-two.

moonash avatar moonash commented on August 17, 2024

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
C:\Program Files (x86)\Android\android-studio\sdk\tools
this is the path i added to my environmental variables because that is the path to my android.bat

from tess-two.

Nosqe avatar Nosqe commented on August 17, 2024

@moonash first of all thanks for the quick response

surprisingly enough when i tried to search that path you mentioned i realised that my
C:\Program Files\Android\android-studio does not contain a sdk folder at all even though
when i checked the SDK manager through the Android studio it looks like the components are actually installed.

--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."

from tess-two.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.