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

Build fails on Window windows-x86_64 #33

Closed
gwatqzyuan opened this issue Dec 25, 2013 · 29 comments
Closed

Build fails on Window windows-x86_64 #33

gwatqzyuan opened this issue Dec 25, 2013 · 29 comments

Comments

@gwatqzyuan
Copy link

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 byobj/local/armeabi/libhydrogen.so'. Stop.

@rmtheis
Copy link
Owner

rmtheis commented Dec 25, 2013

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

@rmtheis rmtheis closed this as completed Dec 25, 2013
@gwatqzyuan
Copy link
Author

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.

@rmtheis
Copy link
Owner

rmtheis commented Dec 26, 2013

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.

@lupsyn
Copy link

lupsyn commented Jan 14, 2014

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.

@Annyjain29
Copy link

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

@nigelt007
Copy link

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.

@rmtheis
Copy link
Owner

rmtheis commented Aug 11, 2014

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

@simonedstromsi
Copy link

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

@annaleena
Copy link

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.

@Santosh-E-sig
Copy link

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

@moonash
Copy link

moonash commented Mar 30, 2015

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

@Santosh-E-sig
Copy link

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

@moonash
Copy link

moonash commented Mar 30, 2015

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

@Santosh-E-sig
Copy link

@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

@moonash
Copy link

moonash commented Mar 30, 2015

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

@Santosh-E-sig
Copy link

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.

@moonash
Copy link

moonash commented Mar 30, 2015

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

@sid-dude
Copy link

@moonash ..i am also facing the same problem

@moonash
Copy link

moonash commented Mar 30, 2015

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

@Santosh-E-sig
Copy link

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

ocr

@moonash
Copy link

moonash commented Mar 30, 2015

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

@sid-dude
Copy link

@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

@Santosh-E-sig
Copy link

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

@moonash
Copy link

moonash commented Mar 30, 2015

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

@sid-dude
Copy link

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

@Santosh-E-sig
Copy link

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

@Nosqe
Copy link

Nosqe commented Mar 31, 2015

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

@moonash
Copy link

moonash commented Mar 31, 2015

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

@Nosqe
Copy link

Nosqe commented Mar 31, 2015

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

Repository owner locked and limited conversation to collaborators Jul 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests