Giter Club home page Giter Club logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
# 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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Removed libjpeg.

Original comment by [email protected] on 11 Sep 2012 at 8:09

  • Changed state: Fixed

from tesseract-android-tools.

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.