gnewtothis101 / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

disable-graphics option in configure #760

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The option disable-graphics of configure doesn't compile fine.

There are some problems to fix. After doing that below it worked for me.

Some code must be put into #ifndef GRAPHICS_DISABLED ... #endif
1. image/svshowim.cpp: line 37
2. training/mftraining.cpp: body of the function of DisplayProtoList
3. viewer/svpaint.cpp: all the file
3. ccstruct/blobs.h: the 3 definitions of plot(...) functions
4. ccstruct/blobs.cpp: the 3 plot(...) functions
5. classify/adaptmach.cpp: the whole function RefreshDebugWindow and the 
references to RefreshDebugWindow and ScrollView into functions LearnWord, 
LearnPieces.
6. classify/intproto.cpp: the whole functions InitIntMatchWindowIfReqd, 
InitProtoDisplayWindowIfReqd, InitFeatureDisplayWindowIfReqd and 
CreateFeatureSpaceWindow
7. textord/colfind.cpp: into the function FindBlocks, the body for the 
if(textord_tabfind_show_partitions), and the body for the if (blocks_win_ != 
NULL).
8. textord/colpartitionset.cpp: the body of the function DisplayColumnEdges
9. textord/strokewidth.cpp: into the destructor StrokeWidth the line 111 and 
into the function MarkLeaderNeighbours the body for if(leaders_win_ != NULL)
10.textord/tabfind.cpp: into the function FindTabVectors(...), the body for if 
(textord_tabfind_show_finaltabs); into the function ComputeColumnWidths(...) 
the references to tab_win; into the function SetGlobalSpacings(...) the body 
for if (textord_tablefind_show_stats)

11. textord/tordmain.cpp: the line 246
12. ccmain/pgedit.h: all the function definitions
13. api/baseapi.cpp: in function Recognize(), the body for  if 
(tesseract_->interactive_mode).
14. texord/colpartiontion.cpp: function BoxColor(...)

At the begining of file viewer/scrollview.h and ccmain/pgedit.h, needs

#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif

In ccmain/pgedit.cpp: put Tesseract::word_dumper(...) out of #ifndef 
GRAPHICS_DISABLED ... #endif

Original issue reported on code.google.com by Toni.Pad...@gmail.com on 19 Sep 2012 at 2:03

GoogleCodeExporter commented 9 years ago
Please provide details:
* details for "doesn't compile fine"
* what version/revision you are using?

Please provide patch and not written description.

Original comment by zde...@gmail.com on 19 Sep 2012 at 5:25

GoogleCodeExporter commented 9 years ago
Sorry.

* "doesn't compile fine" really was doesn't compile at all neither links. Lots 
of undefined functions. And after fix them, lots of not defined functions.

* I work with 3.01 version, in Debian 6.

I attach the changes I made in a patch.

Original comment by Toni.Pad...@gmail.com on 20 Sep 2012 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
And maybe can help. I use this params for configure script.

./configure --prefix=/ --disable-static --disable-largefile --disable-graphics 
LIBLEPT_HEADERSDIR="/include/leptonica"

Original comment by Toni.Pad...@gmail.com on 20 Sep 2012 at 6:09

GoogleCodeExporter commented 9 years ago
You need to check/test 3.02 version (in svn).
There was fix (see 
http://code.google.com/p/tesseract-ocr/source/detail?spec=svn686&r=686) for 
this.

Original comment by zde...@gmail.com on 20 Sep 2012 at 6:36

GoogleCodeExporter commented 9 years ago
I've made a checkout of the trunk version from svn and now it compiles ok.

I would like to test it following your instructions in 
http://code.google.com/p/tesseract-ocr/wiki/TestingTesseract, but the UNLV web 
seems to be changed and all the links are broken. Any other way to test the 
working?

Thanks.

Original comment by Toni.Pad...@gmail.com on 20 Sep 2012 at 7:22

GoogleCodeExporter commented 9 years ago
Check this links
http://code.google.com/p/isri-ocr-evaluation-tools/downloads/list

http://stephenvrice.com/images/AT-1995.pdf

Original comment by zde...@gmail.com on 20 Sep 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Links will be fixed in next wiki update.

Original comment by zde...@gmail.com on 22 Sep 2012 at 9:22