Comments (11)
Temporarily I use
http://code.google.com/p/androido3d/source/browse/android/apps/o3d/project/jni/t
hird_party/libjpeg/?r=6bc15cab44a5f9c13b193bc7397b6ad5eef8397c
code and the Android.mk
Original comment by [email protected]
on 11 Sep 2011 at 1:09
from tesseract-android-tools.
you can use the mirror
https://github.com/android/platform_external_jpeg
Original comment by [email protected]
on 14 Sep 2011 at 12:01
from tesseract-android-tools.
The code and Android.mk from mirror
site:https://github.com/android/platform_external_jpeg cannot work.
I got the error message from the ndk-build as below:
"C:/OCR/tesseract-android-tools-1.00/external/libjpeg/jmem-ashmem.c:22:27:
error:
cutils/ashmem.h: No such file or directory
make: *** [/cygdrive/c/OCR/tesseract-android-tools-1.00/obj/local/armeabi/objs/j
peg/jmem-ashmem.o] Error 1 "
It seems looking for the "cutils/ashmem.h" file, but this file is not included
in the files downloaded from mirror site.
Anyone know how to solve this problem?
Original comment by [email protected]
on 14 Sep 2011 at 3:46
from tesseract-android-tools.
# libjpeg/Android.mk for tessaract build change
# comment use of jmem-ashmem.c
# uncomment use of jmem-android.c
# use ashmem as libjpeg decoder's backing store
#LOCAL_CFLAGS += -DUSE_ANDROID_ASHMEM
#LOCAL_SRC_FILES += \
# jmem-ashmem.c
# the original android memory manager.
# use sdcard as libjpeg decoder's backing store
LOCAL_SRC_FILES += \
jmem-android.c
Original comment by [email protected]
on 15 Sep 2011 at 7:36
from tesseract-android-tools.
THx dragoslav.mlakar
but now I got another problem:
"Compile arm : jpeg <= jmem-android.c
SharedLibrary : libjpeg.so
Install : libjpeg.so => libs/armeabi/libjpeg.so
make: *** No rule to make target `//cygdrive/c/OCR/tesseract-android-tools-1.00/
external/leptonlib-1.66/src/adaptmap.c', needed by `/cygdrive/c/OCR/tesseract-an
droid-tools-1.00/obj/local/armeabi/objs/lept//cygdrive/c/OCR/tesseract-android-t
ools-1.00/external/leptonlib-1.66/src/adaptmap.o'. Stop."
I run cygwin on my windows 7, it seems the path problem with "//".....don't
know how to fix it yet.
Any ideas?
Original comment by [email protected]
on 16 Sep 2011 at 2:40
from tesseract-android-tools.
copy the files in jni/com_googlecode_leptonica_android external/ to
external/leptonlib-1.66 folder, inside leptonlib-1.66 run ./configure, wait for
it and type make, this will take some time.
Original comment by [email protected]
on 16 Oct 2011 at 10:04
from tesseract-android-tools.
rafaell,
I have the same problem as ChunHsia, and tried your fix, with the same results.
I copied the files and ran .configure and make; here's the output from the
*second* time I tried it:
detl2v@A5022839 /cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66
$ make
gcc -o endiantest endiantest.c; export ENDIANNESS=-D`./endiantest`; make -f
Makefile all-recursive
make[1]: Entering directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66'
Making all in src
make[2]: Entering directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66/src'
make[3]: Entering directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66/src'
make[2]: Leaving directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66/src'
make[2]: Entering directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66'
make[2]: Leaving directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66'
make[1]: Leaving directory
`/cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66'
detl2v@A5022839 /cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66
$ cd ..
detl2v@A5022839 /cygdrive/d/proj/tesseract-tools/external
$ cd ..
detl2v@A5022839 /cygdrive/d/proj/tesseract-tools
$ ndk-build
Install : libjpeg.so => libs/armeabi/libjpeg.so
make: *** No rule to make target
`//cygdrive/d/proj/tesseract-tools/external/leptonlib-1.66/src/adaptmap.c', need
ed by
`/cygdrive/d/proj/tesseract-tools/obj/local/armeabi/objs/lept//cygdrive/d/proj/t
esseract-tools/exter
nal/leptonlib-1.66/src/adaptmap.o'. Stop.
Ideas?
/rob
Original comment by [email protected]
on 21 Oct 2011 at 6:16
from tesseract-android-tools.
See my answer on issue 4, using windows with cygwin or mac, ndk has a little
problem to compile, try to use a linux distribuition, or change Android.mk
files for windows or mac, I can send my modified mk files if you need.
Original comment by [email protected]
on 21 Oct 2011 at 6:43
from tesseract-android-tools.
Yes, alright, it feels like I'm giving in, but indeed, I used my OpenSuSE 11.3
virtual machine and the Tesseract tools compiled with no problem! Since I'm not
going to be doing any mods to Tesseract (I hope!) I guess that's an OK solution
for me - I won't have to go back and forth between systems too often (since I
still can't get 'shared folders' for work for me under VMWare Player I have to
move files with a USB stick!).
Thanks!
/rob
Original comment by [email protected]
on 25 Oct 2011 at 3:08
from tesseract-android-tools.
Hi,
I tried using the version from the github mirror (
https://github.com/android/platform_external_jpeg) and it is failing to compile
for me.
I did go ahead and change the Android.mk file to use jmem-android.c.
Here is what the log says as it is failing and a little before:
Compile arm : jpeg <= jidctred.c
Compile arm : jpeg <= jquant1.c
Compile arm : jpeg <= jquant2.c
Compile arm : jpeg <= jutils.c
Compile arm : jpeg <= jmemmgr.c
Compile arm : jpeg <= armv6_idct.S
SharedLibrary : libjpeg.so
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `alloc_small':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:299: undefined reference to `jpeg_get_small'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:299: undefined reference to `jpeg_get_small'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `jinit_memory_mgr':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:1056: undefined reference to `jpeg_mem_init'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:1059: undefined reference to `jpeg_get_small'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:1062: undefined reference to `jpeg_mem_term'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `free_pool':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:975: undefined reference to `jpeg_free_large'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:989: undefined reference to `jpeg_free_small'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `self_destruct':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:1015: undefined reference to `jpeg_free_small'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:1018: undefined reference to `jpeg_mem_term'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `alloc_large':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:362: undefined reference to `jpeg_get_large'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/obj/local/armeabi/obj
s/jpeg/jmemmgr.o: In function `realize_virt_arrays':
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:619: undefined reference to `jpeg_mem_available'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:672: undefined reference to `jpeg_open_backing_store'
/home/mrbobvilla/Dropbox/Workspace/tesseract-android-tools/jni/../external/libjp
eg/jmemmgr.c:648: undefined reference to `jpeg_open_backing_store'
collect2: ld returned 1 exit status
Does anyone have any idea what the issue is? Months ago I tried compiling when
android.git.kernel.org was not down and everything went well for me then. I
tried a clean install now which is appearing to have been a mistake. :) By the
way I am compiling on an Ubuntu VM.
Original comment by [email protected]
on 1 Dec 2011 at 10:07
from tesseract-android-tools.
Removed libjpeg.
Original comment by [email protected]
on 11 Sep 2012 at 8:09
- 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.