Comments (5)
The problem is solved now, I download leptonica-1.66 to solve the problem. But
another error occurred :
Compile++ thumb : lept <= utilities.cpp
//media/00B42E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/ut
ilities.cpp:19:28: error: android/bitmap.h: No such file or directory
make: ***
[/media/00B42E57B42E5008/android-ndk-r6b/obj/local/armeabi/objs/lept//media/00B4
2E57B42E5008/android-ndk-r6b/jni/com_googlecode_leptonica_android/utilities.o]
Error 1
I just realized that com_googlecode_leptonica_android directory doesnt contain
android directory and bitmap.h file
Is something missing there?
Best Regards,
Priska
Original comment by [email protected]
on 6 Nov 2011 at 7:25
from tesseract-android-tools.
Hi
I am using the same lib leptonlib-1.66 and facing the same kind of error as you
mentioned in your first comment. But I am not able to come out from this error.
Please help me and tell how you were able to comeout from this error.
Follwoing error is coming ::
"Compile++ thumb : lept <= box.cpp
In file included from
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_androi
d\box.cpp:17:
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
/common.h:22:24: err
or: allheaders.h: No such file or directory
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jint Java_com_googlecode_leptonica_android_Box_nativeCreate(JNIEnv*, _jclass*, jint, jint, jint, j
int)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: '
l_int32' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: e
xpected ')' before 'y'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: e
xpected ')' before 'w'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: e
xpected ')' before 'h'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:27: error: '
boxCreate' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'void Java_com_googlecode_leptonica_android_Box_nativeDestroy(JNIEnv*, _jclass*, jint)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:35: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:35: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:35: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:35: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:37: error: '
boxDestroy' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jint Java_com_googlecode_leptonica_android_Box_nativeGetX(JNIEnv*, _jclass*, jint)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:43: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:43: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:43: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:43: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jint Java_com_googlecode_leptonica_android_Box_nativeGetY(JNIEnv*, _jclass*, jint)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:51: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:51: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:51: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:51: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jint Java_com_googlecode_leptonica_android_Box_nativeGetWidth(JNIEnv*, _jclass*, jint)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:59: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:59: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:59: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:59: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jint Java_com_googlecode_leptonica_android_Box_nativeGetHeight(JNIEnv*, _jclass*, jint)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:67: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:67: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:67: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:67: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp: In function
'jboolean Java_com_googlecode_leptonica_android_Box_nativeGetGeometry(JNIEnv*, _jclass*, jint, _jin
tArray*)':
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:76: error: '
BOX' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:76: error: '
box' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:76: error: e
xpected primary-expression before ')' token
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:76: error: e
xpected ';' before 'nativeBox'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:78: error: '
l_int32' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:78: error: e
xpected ';' before 'x'
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:80: error: '
x' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:80: error: '
y' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:80: error: '
w' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:80: error: '
h' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:80: error: '
boxGetGeometry' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:84: error: '
x' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:85: error: '
y' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:86: error: '
w' was not declared in this scope
jni/com_googlecode_leptonica_android/../../jni/com_googlecode_leptonica_android\
box.cpp:87: error: '
h' was not declared in this scope
make: ***
[obj/local/armeabi/objs/lept/__/__/jni/com_googlecode_leptonica_android\box.o]
Error 1
Original comment by [email protected]
on 23 Mar 2012 at 1:16
from tesseract-android-tools.
[deleted comment]
from tesseract-android-tools.
Hi Priska..
I tried With leptonica-1.66 lib as well from the link
http://code.google.com/p/leptonica/downloads/detail?name=leptonica-1.66-win32-li
b-include-dirs.zip&can=2&q=
but still I am not able to compile. Please let me know the detail steps which
you followed in building lept lib.
Also, plz let me know whether you integrated leptonica-1.66 seperately along
with leptonlib or completely by replacing leptonlib.
Also plz let me know what steps did you followed in modifying Android.mk file.
I am facing problem in updating that file also
Please provide me help asap.....
Original comment by [email protected]
on 23 Mar 2012 at 1:53
from tesseract-android-tools.
Obsolete. Follow instructions in tesseract-android-tools/README.
Original comment by [email protected]
on 11 Sep 2012 at 8:05
- Changed state: Fixed
from tesseract-android-tools.
Related Issues (20)
- Error in loading eng.traineddata (3.01) using com.android.content.res.AssetManager() HOT 6
- Can not figure out which word corresponds to which confidence value. Hope the output api is as rich as in tesseract C++ API. HOT 1
- Getting Fatal signal 11 error while capture line of numbers HOT 1
- Update to Tesseract 3.02 HOT 1
- Missing files for native build HOT 1
- Binarize Image in tesseract
- How do I use tesseract-andriod-tools?
- WriteFile don't work as expected
- ndk-build fail allheaders.h missing HOT 2
- ndk-build failure due to unsafe fprintf usage in tesseract source. HOT 1
- Assert failed when using tesseract with PSM_OSD_ONLY flag
- nativeSetImage not found
- ChoiceIterator
- Getting result words array
- javax.imageio.IIOException: ICC APP2 encountered without prior JFIF in Tesseract OCR
- root galaxy centra sch-7
- how to Image binarization
- error on compiling tessaract-android-tools ndk-build fails HOT 1
- Leptonica detect image orientation feature request
- NDK Build giving errors of `undefined references` for __sfp __sflags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesseract-android-tools.