Hi

I am trying to use tesseract 3.01 on android.
I am aware that 2.04 was ported and is available
at http://code.google.com/p/eyes-free/ I guess.

After making a few changes, I was able to compile tesseract 3.01 for
android.

However, my application crashes when it tries to load tesseract.
(System.loadLibrary("tess"))

using addr2line on libtess.so points me to the file ResultIterator.cpp
(func float ResultIterator::Confidence(PageIteratorLevel level)
const ).

Using Sequoyah , I was able to get to exact culprit :

file elst2.h func . Following is the trace, and it seems that there is
probably some problem with how the file is being interpred by arm
compiler

Has anyone tried running tesseract 3.01 on android?
Can anyone suggest changes that needs to be made to resolve the errors
below.


gdb)
121 info signal SIGSEGV
&"info signal SIGSEGV\n"
~"Signal        Stop\tPrint\tPass to program\tDescription\n"
~"SIGSEGV       Yes\tYes\tYes\t\tSegmentation fault\n"
121^done
(gdb)
122-stack-list-arguments 0 0 0
122^done,stack-
args=[frame={level="0",args=[name="this",name="new_element"]}]
(gdb)
123-stack-list-locals 0
123^done,locals=[]
(gdb)
124 whatis this
&"whatis this\n"
~"type = ELIST2_ITERATOR * const\n"
124^done
(gdb)
125 ptype ELIST2_ITERATOR * const
&"ptype ELIST2_ITERATOR * const\n"
&"A syntax error in expression, near `'.\n"
125^error,msg="A syntax error in expression, near `'."
(gdb)
126 ptype this
&"ptype this\n"
~"type = class ELIST2_ITERATOR {\n"
~"  private:\n"
~"    ELIST2 *list;\n"
~"    ELIST2_LINK *prev;\n"
~"    ELIST2_LINK *current;\n"
~"    ELIST2_LINK *next;\n"
~"    BOOL8 ex_current_was_last;\n"
~"    BOOL8 ex_current_was_cycle_pt;\n"
~"    ELIST2_LINK *cycle_pt;\n"
~"    BOOL8 started_cycling;\n"
~"\n"
~"    ELIST2_LINK * extract_sublist(ELIST2_ITERATOR*);\n"
~"  public:\n"
~"    ELIST2_ITERATOR(void);\n"
~"    ELIST2_ITERATOR(ELIST2 *);\n"
~"    void set_to_list(ELIST2*);\n"
~"    void add_after_then_move(ELIST2_LINK*);\n"
~"    void add_after_stay_put(ELIST2_LINK*);\n"
~"    void add_before_then_move(ELIST2_LINK*);\n"
~"    void add_before_stay_put(ELIST2_LINK*);\n"
~"    void add_list_after(ELIST2*);\n"
~"    void add_list_before(ELIST2*);\n"
~"    ELIST2_LINK * data();\n"
~"    ELIST2_LINK * data_relative(signed char);\n"
~"    ELIST2_LINK * forward();\n"
~"    ELIST2_LINK * backward();\n"
~"    ELIST2_LINK * extract();\n"
~"    ELIST2_LINK * move_to_first();\n"
~"    ELIST2_LINK * move_to_last();\n"
~"    void mark_cycle_pt();\n"
~"    BOOL8 empty();\n"
~"    BOOL8 current_extracted();\n"
~"    BOOL8 at_first();\n"
~"    BOOL8 at_last();\n"
~"    BOOL8 cycled_list();\n"
~"    void add_to_end(ELIST2_LINK*);\n"
~"    void exchange(ELIST2_ITERATOR*);\n"
~"    inT32 length();\n"
~"    void sort(int (*)(void const*, void const*));\n"
~"} * const\n"
126^done
127 whatis new_element
(gdb)
&"whatis new_element\n"
~"type = ELIST2_LINK *\n"
127^done
(gdb)
128 ptype ELIST2_LINK *
&"ptype ELIST2_LINK *\n"
~"type = class ELIST2_LINK {\n"
~"  private:\n"
~"    ELIST2_LINK *prev;\n"
~"    ELIST2_LINK *next;\n"
~"\n"
~"  public:\n"
~"    ELIST2_LINK(void);\n"
~"    ELIST2_LINK(const ELIST2_LINK &);\n"
~"    void operator=(ELIST2_LINK const&);\n"
~"} *\n"
128^done
(gdb)
129-var-create - * this
129^done,name="var1",numchild="1",type="ELIST2_ITERATOR * const"
(gdb)
130-var-evaluate-expression var1
130^done,value="0x0"
(gdb)
131-var-create - * new_element
131^done,name="var2",numchild="1",type="ELIST2_LINK *"
(gdb)
132-var-evaluate-expression var2
132^done,value="0x1670"
(gdb)


-Arpit Goliya

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tesseract-ocr?hl=en.

Reply via email to