3.03 status

3,026 views
Skip to first unread message

Ray Smith

unread,
Jan 9, 2014, 2:04:22 PM1/9/14
to tesser...@googlegroups.com
Dear developers,

I have just finished committing a bunch of updates:

  • Removed IMAGE class and code in image directory. This may have messed up the OpenCL implementation. AMD developers please check.
  • Added a PDF renderer that outputs the original document images with backing text. (A much requested feature.) This is currently broken (part of the code commented out) awaiting leptonica 1.70, which will be out very soon.
  • Added a training tool text2image, which creates a perfect tif/box pair from a font and plain text. This adds a truckload of new dependencies: pango, cairo, which in turn have their own dependencies. I have hacked configure.ac to check for them an add the needed includes. Not sure if it will work on all platforms though, so please test. I have not done anything to make this lot build on windows! (Please help if you want training to work on windows!)

Timeline:
A lot of people have asked for a timeline, so here is one:
The plan is to get 3.03 into the next ubuntu release, so all changes need to be made by mid-late January, and the official tarball will be cut at the end of January to match the ubuntu release.

I will now attack the issues list, which Zdenko has kindly organized for me, and will be keeping a look out for any portability problems that come up as you start testing it out.

Thanks to everyone for the help polishing 3.03!

Regards,
Ray.

Quan Nguyen

unread,
Jan 10, 2014, 8:41:33 PM1/10/14
to tesser...@googlegroups.com
Hi Ray,

I compiled Tesseract r974 using VS2010 solution and encountered lots of errors:

1>------ Build started: Project: libtesseract303, Configuration: DLL_Release Win32 ------
1>  adaptions.cpp
1>c:\projects\tesseract\tesseract-3.0.3\ccutil\errcode.h(90): error C2010: '.' : unexpected in macro formal parameter list
1>  par_control.cpp
1>c:\projects\tesseract\tesseract-3.0.3\ccutil\errcode.h(90): error C2010: '.' : unexpected in macro formal parameter list
....


1>------ Build started: Project: libtesseract303, Configuration: LIB_Release Win32 ------
1>  adaptions.cpp
1>c:\projects\tesseract\tesseract-3.0.3\ccutil\errcode.h(90): error C2010: '.' : unexpected in macro formal parameter list
1>  par_control.cpp
1>c:\projects\tesseract\tesseract-3.0.3\ccutil\errcode.h(90): error C2010: '.' : unexpected in macro formal parameter list
...

zdenko podobny

unread,
Jan 11, 2014, 3:48:04 AM1/11/14
to tesser...@googlegroups.com
Quan,

see "I have not done anything to make this lot build on windows! (Please help if you want training to work on windows!)"...

at the moment I am testing linux build system (linux first ;-) ), than if there will be time windows. If somebody will wants to help, please send I sort message here, so we can organize testing/fixing issues.

Zdenko


--
You received this message because you are subscribed to the Google Groups "tesseract-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sriranga(80yrs)

unread,
Jan 11, 2014, 9:06:50 AM1/11/14
to tesser...@googlegroups.com
tried in the ubuntu 13.10.- failed -  extract of terminal reproduced below with attached config.log 
Awaiting solution/guidance.

dell-13-10@dell1310-OptiPlex-330:~$ cd tesseract-ocr-read-only\ 980/
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only 980$ ./autogen.sh
Running aclocal
Running libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running autoheader
Running automake --add-missing --copy
Running autoconf

All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only 980$ ./autoreconf -i
bash: ./autoreconf: No such file or directory
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only 980$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking --enable-graphics argument... yes
checking --enable-embedded argument... no
checking --enable-opencl argument... no
checking --enable-visibility argument... no
checking --enable-multiple-libraries argument... no
checking whether to use tessdata-prefix... yes
checking whether to enable debugging... no
./configure: line 3482: test: /home/dell-13-10/tesseract-ocr-read-only: binary operator expected
./configure: line 3485: test: /home/dell-13-10/tesseract-ocr-read-only: binary operator expected
checking for g++... no
checking whether the C++ compiler works... no
configure: error: in `/home/dell-13-10/tesseract-ocr-read-only 980':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only 980$ ./autoreconf -i
bash: ./autoreconf: No such file or directory
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only 980$



--
config.log

Quan Nguyen

unread,
Jan 11, 2014, 12:52:58 PM1/11/14
to tesser...@googlegroups.com
It was due to missing a comma after msg in ccutil\errcode.cpp:

#define ASSERT_HOST_MSG(x, msg, ...) if (!(x))

That eliminates most of the errors.

zdenko podobny

unread,
Jan 11, 2014, 2:17:55 PM1/11/14
to tesser...@googlegroups.com
I guess you need to add new files, remove removed files etc. too.
Can you send me the patch if you have working solution? I will not be able to start work on windows withing next 18 hours...

Zdenko

Sriranga(80yrs)

unread,
Jan 12, 2014, 4:23:36 AM1/12/14
to tesser...@googlegroups.com, Ray Smith
Thanks to quan's solution about "missing a comma after msg in ccutil\errcode.cpp"  - in my case it is  in ccutil\errcode.h(90) - corrected as per Quan's solution  - most of errors were reduced. But still there are  few errors displayed as follows:
 observations:
1)copied hashfn.cpp from prev.version
2)opend folder : unordered_map, openclwrapper.h'
3)image: svshowim.cpp': No such file or directory
4)ccmain: scaleimg.cpp':No such file or directory


1>------ Build started: Project: libtesseract303, Configuration: LIB_Debug Win32 ------
1>Compiling...
1>adaptions.cpp
1>params_model.cpp
1>lm_state.cpp
1>lm_pain_points.cpp
1>lm_consistency.cpp
1>baselinedetect.cpp
1>dawg_cache.cpp
1>shapeclassifier.cpp
1>universalambigs.cpp
1>scanutils.cpp
1>params_training_featdef.cpp
1>blamer.cpp
1>superscript.cpp
1>renderer.cpp
1>xform2d.cpp
1>workingpartset.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>wordseg.cpp
1>wordrec.cpp
1>wordclass.cpp
1>word_unigrams.cpp
1>Generating Code...
1>Compiling...
1>word_size_model.cpp
1>word_list_lang_model.cpp
1>word_altlist.cpp
1>werdit.cpp
1>werd.cpp
1>..\..\ccstruct\werd.cpp(468) : warning C4804: '>' : unsafe use of type 'bool' in operation
1>vecfuncs.cpp
1>unicodes.cpp
1>unicharset.cpp
1>unicharmap.cpp
1>unichar.cpp
1>underlin.cpp
1>trie.cpp
1>trainingsampleset.cpp
1>trainingsample.cpp
1>tprintf.cpp
1>tovars.cpp
1>tospace.cpp
1>tordmain.cpp
1>topitch.cpp
1>thresholder.cpp
1>..\..\ccmain\thresholder.cpp(28) : fatal error C1083: Cannot open include file: 'openclwrapper.h': No such file or directory
1>Generating Code...
1>Compiling...
1>tfacepp.cpp
1>tface.cpp
1>textord.cpp
1>textlineprojection.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tessvars.cpp
1>tesseractclass.cpp
1>tesseract_cube_combiner.cpp
1>tessedit.cpp
1>tessdatamanager.cpp
1>tessclassifier.cpp
1>tessbox.cpp
1>tess_lang_model.cpp
1>tess_lang_mod_edge.cpp
1>tabvector.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tablerecog.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tablefind.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tabfind.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>svutil.cpp
1>svshowim.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\image\svshowim.cpp': No such file or directory
1>svpaint.cpp
1>Generating Code...
1>Compiling...
1>svmnode.cpp
1>structures.cpp
1>strtok_r.cpp
1>strokewidth.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>strngs.cpp
1>stopper.cpp
1>stepblob.cpp
1>statistc.cpp
1>split.cpp
1>sortflts.cpp
1>sigmoid_table.cpp
1>shapetable.cpp
1>serialis.cpp
1>segsearch.cpp
1>search_node.cpp
1>search_column.cpp
1>seam.cpp
1>..\..\ccstruct\seam.cpp(170) : warning C4101: 'test_index' : unreferenced local variable
1>..\..\ccstruct\seam.cpp(169) : warning C4101: 'blob' : unreferenced local variable
1>..\..\ccstruct\seam.cpp(200) : warning C4101: 'test_index' : unreferenced local variable
1>scrollview.cpp
1>scanedg.cpp
1>scaleimg.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\ccmain\scaleimg.cpp': No such file or directory
1>Generating Code...
1>Compiling...
1>sampleiterator.cpp
1>resultiterator.cpp
1>render.cpp
1>reject.cpp
1>rejctmap.cpp
1>rect.cpp
1>recogtraining.cpp
1>ratngs.cpp
1>quspline.cpp
1>quadratc.cpp
1>quadlsq.cpp
1>publictypes.cpp
1>protos.cpp
1>polyblk.cpp
1>polyaprx.cpp
1>points.cpp
1>plotedges.cpp
1>pitsync1.cpp
1>pithsync.cpp
1>pieces.cpp
1>Generating Code...
1>Compiling...
1>picofeat.cpp
1>pgedit.cpp
1>permdawg.cpp
1>pdblock.cpp
1>paramsd.cpp
1>params.cpp
1>paragraphs.cpp
1>pagewalk.cpp
1>pagesegmain.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>pageres.cpp
1>pageiterator.cpp
1>output.cpp
1>outlines.cpp
1>outfeat.cpp
1>otsuthr.cpp
1>..\..\ccstruct\otsuthr.cpp(25) : fatal error C1083: Cannot open include file: 'openclwrapper.h': No such file or directory
1>osdetect.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>olutil.cpp
1>oldlist.cpp
1>oldbasel.cpp
1>ocrrow.cpp
1>Generating Code...
1>Compiling...
1>ocrpara.cpp
1>ocrfeatures.cpp
1>ocrblock.cpp
1>normmatch.cpp
1>normfeat.cpp
1>normalis.cpp
1>neuron.cpp
1>neural_net.cpp
1>mod128.cpp
1>mfx.cpp
1>mfoutline.cpp
1>mfdefs.cpp
1>mf.cpp
1>memry.cpp
1>matrix.cpp
1>mastertrainer.cpp
1>makerow.cpp
1>makechop.cpp
1>mainblk.cpp
1>ltrresultiterator.cpp
1>Generating Code...
1>Compiling...
1>listio.cpp
1>linlsq.cpp
1>linefind.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>language_model.cpp
1>kdtree.cpp
1>intproto.cpp
1>intmatcher.cpp
1>intfx.cpp
1>intfeaturespace.cpp
1>intfeaturemap.cpp
1>intfeaturedist.cpp
1>input_file_buffer.cpp
1>indexmapbidi.cpp
1>imgscale.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\ccmain\imgscale.cpp': No such file or directory
1>imgs.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\image\imgs.cpp': No such file or directory
1>imagefind.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>image.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\image\image.cpp': No such file or directory
1>hyphen.cpp
1>hybrid_neural_net_classifier.cpp
1>hashfn.cpp
1>d:\tess-svn980buildfolder\build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>Generating Code...
1>Compiling...
1>gradechop.cpp
1>globaloc.cpp
1>gettimeofday.cpp
1>genblob.cpp
1>gap_map.cpp
1>fxdefs.cpp
1>freelist.cpp
1>fpoint.cpp
1>fpchop.cpp
1>fontinfo.cpp
1>float2int.cpp
1>flexfx.cpp
1>fixxht.cpp
1>fixspace.cpp
1>findseam.cpp
1>..\..\wordrec\findseam.cpp(199) : warning C4101: 'x' : unreferenced local variable
1>feature_hybrid.cpp
1>feature_chebyshev.cpp
1>feature_bmp.cpp
1>featdefs.cpp
1>extract.cpp
1>Generating Code...
1>Compiling...
1>errorcounter.cpp
1>errcode.cpp
1>equationdetectbase.cpp
1>equationdetect.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>emalloc.cpp
1>elst2.cpp
1>elst.cpp
1>efio.cpp
1>edgloop.cpp
1>edgblob.cpp
1>drawtord.cpp
1>drawfx.cpp
1>drawedg.cpp
1>dppoint.cpp
1>docqual.cpp
1>dict.cpp
1>devanagari_processing.cpp
1>detlinefit.cpp
1>dawg.cpp
1>danerror.cpp
1>Generating Code...
1>Compiling...
1>cutoffs.cpp
1>cutil_class.cpp
1>cutil.cpp
1>cubeclassifier.cpp
1>cube_utils.cpp
1>cube_tuning_params.cpp
1>cube_search_object.cpp
1>cube_reco_context.cpp
1>cube_object.cpp
1>cube_line_segmenter.cpp
1>cube_line_object.cpp
1>cube_control.cpp
1>coutln.cpp
1>conv_net_classifier.cpp
1>control.cpp
1>context.cpp
1>con_comp.cpp
1>colpartitionset.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>colpartitiongrid.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>colpartition.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>Generating Code...
1>Compiling...
1>colfind.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>clusttool.cpp
1>cluster.cpp
1>clst.cpp
1>classify.cpp
1>classifier_factory.cpp
1>cjkpitch.cpp
1>chopper.cpp
1>chop.cpp
1>chartoname.cpp
1>char_set.cpp
1>char_samp_set.cpp
1>char_samp_enum.cpp
1>char_samp.cpp
1>char_bigrams.cpp
1>char_altlist.cpp
1>ccutil.cpp
1>ccstruct.cpp
1>ccnontextdetect.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>capi.cpp
1>Generating Code...
1>Compiling...
1>callcpp.cpp
1>cached_file.cpp
1>boxword.cpp
1>boxread.cpp
1>bmp_8.cpp
1>blread.cpp
1>blobs.cpp
1>blobgrid.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>blobclass.cpp
1>blobbox.cpp
1>blkocc.cpp
1>bitvector.cpp
1>bitvec.cpp
1>bits16.cpp
1>beam_search.cpp
1>bbgrid.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>basedir.cpp
1>baseapi.cpp
1>..\..\api\baseapi.cpp(55) : fatal error C1083: Cannot open include file: 'openclwrapper.h': No such file or directory
1>associate.cpp
1>applybox.cpp
1>Generating Code...
1>Compiling...
1>ambigs.cpp
1>altlist.cpp
1>alignedblob.cpp
1>d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>adaptmatch.cpp
1>adaptive.cpp
1>Generating Code...
1>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\libtesseract\LIB_Debug\BuildLog.htm"
1>libtesseract303 - 29 error(s), 5 warning(s)
2>------ Build started: Project: ambiguous_words, Configuration: LIB_Debug Win32 ------
3>------ Build started: Project: dawg2wordlist, Configuration: LIB_Debug Win32 ------
2>Compiling...
3>Compiling...
2>ambiguous_words.cpp
3>dawg2wordlist.cpp
3>Compiling resources...
2>Compiling resources...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
3>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Linking...
3>Linking...
3>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
2>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
3>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\dawg2wordlist\LIB_Debug\BuildLog.htm"
3>dawg2wordlist - 1 error(s), 0 warning(s)
2>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\ambiguous_words\LIB_Debug\BuildLog.htm"
2>ambiguous_words - 1 error(s), 0 warning(s)
4>------ Build started: Project: classifier_tester, Configuration: LIB_Debug Win32 ------
4>Compiling...
4>classifier_tester.cpp
5>------ Build started: Project: wordlist2dawg, Configuration: LIB_Debug Win32 ------
5>Compiling...
5>wordlist2dawg.cpp
4>Compiling resources...
4>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
4>Copyright (C) Microsoft Corporation.  All rights reserved.
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
4>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\classifier_tester\LIB_Debug\BuildLog.htm"
4>classifier_tester - 1 error(s), 0 warning(s)
5>Compiling resources...
5>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
5>Copyright (C) Microsoft Corporation.  All rights reserved.
5>Linking...
5>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
5>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\wordlist2dawg\LIB_Debug\BuildLog.htm"
5>wordlist2dawg - 1 error(s), 0 warning(s)
6>------ Build started: Project: unicharset_extractor, Configuration: LIB_Debug Win32 ------
6>Compiling...
6>unicharset_extractor.cpp
7>------ Build started: Project: mftraining, Configuration: LIB_Debug Win32 ------
7>Compiling...
7>mftraining.cpp
6>Compiling resources...
6>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
6>Copyright (C) Microsoft Corporation.  All rights reserved.
6>Linking...
6>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
6>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\unicharset_extractor\LIB_Debug\BuildLog.htm"
6>unicharset_extractor - 1 error(s), 0 warning(s)
8>------ Build started: Project: combine_tessdata, Configuration: LIB_Debug Win32 ------
8>Compiling...
7>mergenf.cpp
8>combine_tessdata.cpp
8>Compiling resources...
8>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
8>Copyright (C) Microsoft Corporation.  All rights reserved.
8>Linking...
7>Generating Code...
8>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
8>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\combine_tessdata\LIB_Debug\BuildLog.htm"
8>combine_tessdata - 1 error(s), 0 warning(s)
7>Compiling resources...
7>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
7>Copyright (C) Microsoft Corporation.  All rights reserved.
7>Linking...
7>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
7>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\mftraining\LIB_Debug\BuildLog.htm"
7>mftraining - 1 error(s), 0 warning(s)
9>------ Build started: Project: cntraining, Configuration: LIB_Debug Win32 ------
9>Compiling...
9>cntraining.cpp
10>------ Build started: Project: tesseract, Configuration: LIB_Debug Win32 ------
10>Compiling...
10>tesseractmain.cpp
9>Compiling resources...
9>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
9>Copyright (C) Microsoft Corporation.  All rights reserved.
9>Linking...
9>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
9>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\cntraining\LIB_Debug\BuildLog.htm"
9>cntraining - 1 error(s), 0 warning(s)
10>..\..\api\tesseractmain.cpp(37) : fatal error C1083: Cannot open include file: 'openclwrapper.h': No such file or directory
10>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\tesseract\LIB_Debug\BuildLog.htm"
10>tesseract - 1 error(s), 0 warning(s)
11>------ Build started: Project: shapeclustering, Configuration: LIB_Debug Win32 ------
11>Compiling...
11>shapeclustering.cpp
11>Compiling resources...
11>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
11>Copyright (C) Microsoft Corporation.  All rights reserved.
11>Linking...
11>LINK : fatal error LNK1181: cannot open input file '..\lib_debug\libtesseract303-static-debug.lib'
11>Build log was saved at "file://d:\tess-svn980BuildFolder\Build folder\tesseract-ocr-read-only 980\vs2008\shapeclustering\LIB_Debug\BuildLog.htm"
11>shapeclustering - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 11 failed, 0 up-to-date, 0 skipped ==========
==========

Sriranga(80yrs)

unread,
Jan 12, 2014, 11:16:47 PM1/12/14
to tesser...@googlegroups.com
Downloaded from svn -r985 - ubuntu 13.10. . Followed wiki (tesseract svn installations for linux) - again failed. . - extract of terminal is reproduced below for information and needful.

A    tesseract-ocr-read-only/tessdata/configs/bigram
A    tesseract-ocr-read-only/tessdata/configs/box.train
A    tesseract-ocr-read-only/tessdata/configs/box.train.stderr
A    tesseract-ocr-read-only/tessdata/configs/strokewidth
A    tesseract-ocr-read-only/tessdata/configs/pdf
A    tesseract-ocr-read-only/tessdata/configs/Makefile.am
A    tesseract-ocr-read-only/tessdata/configs/ambigs.train
A    tesseract-ocr-read-only/tessdata/rus.traineddata
A    tesseract-ocr-read-only/tessdata/chi_tra.traineddata
A    tesseract-ocr-read-only/tessdata/tur.traineddata
A    tesseract-ocr-read-only/tessdata/slk-frak.traineddata
A    tesseract-ocr-read-only/tessdata/ita_old.traineddata
A    tesseract-ocr-read-only/tessdata/chr.traineddata
A    tesseract-ocr-read-only/tessdata/rus.cube.word-freq
A    tesseract-ocr-read-only/tessdata/ell.traineddata
A    tesseract-ocr-read-only/tessdata/ita.traineddata
A    tesseract-ocr-read-only/tessdata/ita.cube.word-freq
A    tesseract-ocr-read-only/tessdata/spa_old.traineddata
A    tesseract-ocr-read-only/tessdata/frk.traineddata
A    tesseract-ocr-read-only/tessdata/spa.traineddata
A    tesseract-ocr-read-only/tessdata/epo.traineddata
A    tesseract-ocr-read-only/tessdata/frm.traineddata
A    tesseract-ocr-read-only/tessdata/pdf.ttf
A    tesseract-ocr-read-only/tessdata/hin.cube.nn
A    tesseract-ocr-read-only/tessdata/slk.traineddata
A    tesseract-ocr-read-only/tessdata/Makefile.am
A    tesseract-ocr-read-only/tessdata/eng.cube.bigrams
A    tesseract-ocr-read-only/tessdata/mlt.traineddata
A    tesseract-ocr-read-only/tessdata/fra.tesseract_cube.nn
A    tesseract-ocr-read-only/tessdata/hin.cube.params
A    tesseract-ocr-read-only/tessdata/eng.tesseract_cube.nn
A    tesseract-ocr-read-only/tessdata/hrv.traineddata
A    tesseract-ocr-read-only/tessdata/hin.cube.fold
A    tesseract-ocr-read-only/Makefile.am
A    tesseract-ocr-read-only/api
A    tesseract-ocr-read-only/api/pdfrenderer.cpp
A    tesseract-ocr-read-only/api/capi.h
A    tesseract-ocr-read-only/api/tesseractmain.cpp
A    tesseract-ocr-read-only/api/apitypes.h
A    tesseract-ocr-read-only/api/baseapi.cpp
A    tesseract-ocr-read-only/api/renderer.cpp
A    tesseract-ocr-read-only/api/Makefile.am
A    tesseract-ocr-read-only/api/baseapi.h
A    tesseract-ocr-read-only/api/renderer.h
A    tesseract-ocr-read-only/api/capi.cpp
A    tesseract-ocr-read-only/training
A    tesseract-ocr-read-only/training/shapeclustering.cpp
A    tesseract-ocr-read-only/training/tessopt.cpp
A    tesseract-ocr-read-only/training/commandlineflags.cpp
A    tesseract-ocr-read-only/training/degradeimage.h
A    tesseract-ocr-read-only/training/pango_font_info.cpp
A    tesseract-ocr-read-only/training/tlog.cpp
A    tesseract-ocr-read-only/training/fileio.cpp
A    tesseract-ocr-read-only/training/ambiguous_words.cpp
A    tesseract-ocr-read-only/training/normstrngs.cpp
A    tesseract-ocr-read-only/training/util.h
A    tesseract-ocr-read-only/training/ligature_table.cpp
A    tesseract-ocr-read-only/training/mergenf.cpp
A    tesseract-ocr-read-only/training/commontraining.cpp
A    tesseract-ocr-read-only/training/icuerrorcode.h
A    tesseract-ocr-read-only/training/boxchar.h
A    tesseract-ocr-read-only/training/wordlist2dawg.cpp
A    tesseract-ocr-read-only/training/cntraining.cpp
A    tesseract-ocr-read-only/training/degradeimage.cpp
A    tesseract-ocr-read-only/training/mftraining.cpp
A    tesseract-ocr-read-only/training/unicharset_extractor.cpp
A    tesseract-ocr-read-only/training/stringrenderer.h
A    tesseract-ocr-read-only/training/combine_tessdata.cpp
A    tesseract-ocr-read-only/training/tessopt.h
A    tesseract-ocr-read-only/training/commandlineflags.h
A    tesseract-ocr-read-only/training/text2image.cpp
A    tesseract-ocr-read-only/training/pango_font_info.h
A    tesseract-ocr-read-only/training/tlog.h
A    tesseract-ocr-read-only/training/classifier_tester.cpp
A    tesseract-ocr-read-only/training/fileio.h
A    tesseract-ocr-read-only/training/normstrngs.h
A    tesseract-ocr-read-only/training/boxchar.cpp
A    tesseract-ocr-read-only/training/mergenf.h
A    tesseract-ocr-read-only/training/Makefile.am
A    tesseract-ocr-read-only/training/ligature_table.h
A    tesseract-ocr-read-only/training/commontraining.h
A    tesseract-ocr-read-only/training/langdata
A    tesseract-ocr-read-only/training/langdata/Lao.unicharset
A    tesseract-ocr-read-only/training/langdata/spa_old
A    tesseract-ocr-read-only/training/langdata/spa_old/desired_characters
A    tesseract-ocr-read-only/training/langdata/spa
A    tesseract-ocr-read-only/training/langdata/spa/spa.params-model
A    tesseract-ocr-read-only/training/langdata/spa/desired_characters
A    tesseract-ocr-read-only/training/langdata/spa/spa.unicharambigs
A    tesseract-ocr-read-only/training/langdata/epo
A    tesseract-ocr-read-only/training/langdata/epo/epo.unicharambigs
A    tesseract-ocr-read-only/training/langdata/frm
A    tesseract-ocr-read-only/training/langdata/frm/desired_characters
A    tesseract-ocr-read-only/training/langdata/cyr_lid
A    tesseract-ocr-read-only/training/langdata/cyr_lid/desired_characters
A    tesseract-ocr-read-only/training/langdata/Gujarati.xheights
A    tesseract-ocr-read-only/training/langdata/Khmer.xheights
A    tesseract-ocr-read-only/training/langdata/Lao.xheights
A    tesseract-ocr-read-only/training/langdata/Greek.unicharset
A    tesseract-ocr-read-only/training/langdata/Kannada.unicharset
A    tesseract-ocr-read-only/training/langdata/Bopomofo.xheights
A    tesseract-ocr-read-only/training/langdata/vocr
A    tesseract-ocr-read-only/training/langdata/vocr/vocr.config
A    tesseract-ocr-read-only/training/langdata/mal
A    tesseract-ocr-read-only/training/langdata/mal/mal.unicharambigs
A    tesseract-ocr-read-only/training/langdata/mal/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/mal/mal.config
A    tesseract-ocr-read-only/training/langdata/kan
A    tesseract-ocr-read-only/training/langdata/kan/kan.unicharambigs
A    tesseract-ocr-read-only/training/langdata/kan/kan.config
A    tesseract-ocr-read-only/training/langdata/Telugu.unicharset
A    tesseract-ocr-read-only/training/langdata/Tamil.unicharset
A    tesseract-ocr-read-only/training/langdata/ces
A    tesseract-ocr-read-only/training/langdata/ces/ces.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Han.unicharset
A    tesseract-ocr-read-only/training/langdata/chi_sim
A    tesseract-ocr-read-only/training/langdata/chi_sim/chi_sim.config
A    tesseract-ocr-read-only/training/langdata/chi_sim/chi_sim.unicharambigs
A    tesseract-ocr-read-only/training/langdata/chi_sim/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/chi_sim/desired_characters
A    tesseract-ocr-read-only/training/langdata/Syriac.xheights
A    tesseract-ocr-read-only/training/langdata/Hiragana.unicharset
A    tesseract-ocr-read-only/training/langdata/Kannada.xheights
A    tesseract-ocr-read-only/training/langdata/Greek.xheights
A    tesseract-ocr-read-only/training/langdata/font_properties
A    tesseract-ocr-read-only/training/langdata/Sinhala.unicharset
A    tesseract-ocr-read-only/training/langdata/Runic.unicharset
A    tesseract-ocr-read-only/training/langdata/kir
A    tesseract-ocr-read-only/training/langdata/kir/desired_characters
A    tesseract-ocr-read-only/training/langdata/Telugu.xheights
A    tesseract-ocr-read-only/training/langdata/Thai.unicharset
A    tesseract-ocr-read-only/training/langdata/Canadian_Aboriginal.unicharset
A    tesseract-ocr-read-only/training/langdata/Cyrillic.xheights
A    tesseract-ocr-read-only/training/langdata/ron
A    tesseract-ocr-read-only/training/langdata/ron/ron.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Hebrew.xheights
A    tesseract-ocr-read-only/training/langdata/Armenian.unicharset
A    tesseract-ocr-read-only/training/langdata/Georgian.unicharset
A    tesseract-ocr-read-only/training/langdata/Hangul.xheights
A    tesseract-ocr-read-only/training/langdata/por
A    tesseract-ocr-read-only/training/langdata/por/por.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Sinhala.xheights
A    tesseract-ocr-read-only/training/langdata/ara
A    tesseract-ocr-read-only/training/langdata/ara/ara.config
A    tesseract-ocr-read-only/training/langdata/ara/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/common.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Bengali.unicharset
A    tesseract-ocr-read-only/training/langdata/Thai.xheights
A    tesseract-ocr-read-only/training/langdata/Canadian_Aboriginal.xheights
A    tesseract-ocr-read-only/training/langdata/afr
A    tesseract-ocr-read-only/training/langdata/afr/afr.unicharambigs
A    tesseract-ocr-read-only/training/langdata/lat_lid
A    tesseract-ocr-read-only/training/langdata/lat_lid/desired_characters
A    tesseract-ocr-read-only/training/langdata/eng
A    tesseract-ocr-read-only/training/langdata/eng/eng.cube-word-dawg
A    tesseract-ocr-read-only/training/langdata/eng/eng.unicharambigs
A    tesseract-ocr-read-only/training/langdata/eng/eng.cube-unicharset
A    tesseract-ocr-read-only/training/langdata/eng/desired_characters
A    tesseract-ocr-read-only/training/langdata/Khmer.unicharset
A    tesseract-ocr-read-only/training/langdata/Gujarati.unicharset
A    tesseract-ocr-read-only/training/langdata/Latin.unicharset
A    tesseract-ocr-read-only/training/langdata/tha
A    tesseract-ocr-read-only/training/langdata/tha/tha.config
A    tesseract-ocr-read-only/training/langdata/tha/tha.unicharambigs
A    tesseract-ocr-read-only/training/langdata/tha/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/tha/tha.params-model
A    tesseract-ocr-read-only/training/langdata/nld
A    tesseract-ocr-read-only/training/langdata/nld/nld.unicharambigs
A    tesseract-ocr-read-only/training/langdata/nld/nld.params-model
A    tesseract-ocr-read-only/training/langdata/nld/desired_characters
A    tesseract-ocr-read-only/training/langdata/Georgian.xheights
A    tesseract-ocr-read-only/training/langdata/enm
A    tesseract-ocr-read-only/training/langdata/enm/enm.unicharambigs
A    tesseract-ocr-read-only/training/langdata/enm/desired_characters
A    tesseract-ocr-read-only/training/langdata/aze
A    tesseract-ocr-read-only/training/langdata/aze/desired_characters
A    tesseract-ocr-read-only/training/langdata/Malayalam.xheights
A    tesseract-ocr-read-only/training/langdata/Bengali.xheights
A    tesseract-ocr-read-only/training/langdata/Bopomofo.unicharset
A    tesseract-ocr-read-only/training/langdata/Ethiopic.xheights
A    tesseract-ocr-read-only/training/langdata/Myanmar.xheights
A    tesseract-ocr-read-only/training/langdata/jpn
A    tesseract-ocr-read-only/training/langdata/jpn/jpn.unicharambigs
A    tesseract-ocr-read-only/training/langdata/jpn/jpn.params-model
A    tesseract-ocr-read-only/training/langdata/jpn/jpn.config
A    tesseract-ocr-read-only/training/langdata/jpn/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/jpn/desired_characters
A    tesseract-ocr-read-only/training/langdata/Latin.xheights
A    tesseract-ocr-read-only/training/langdata/heb
A    tesseract-ocr-read-only/training/langdata/heb/heb.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Syriac.unicharset
A    tesseract-ocr-read-only/training/langdata/forbidden_characters_default
A    tesseract-ocr-read-only/training/langdata/Gurmukhi.unicharset
A    tesseract-ocr-read-only/training/langdata/ben
A    tesseract-ocr-read-only/training/langdata/ben/ben.unicharambigs
A    tesseract-ocr-read-only/training/langdata/ben/ben.params-model
A    tesseract-ocr-read-only/training/langdata/ben/ben.config
A    tesseract-ocr-read-only/training/langdata/ben/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/Devanagari.unicharset
A    tesseract-ocr-read-only/training/langdata/fin
A    tesseract-ocr-read-only/training/langdata/fin/fin.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Gurmukhi.xheights
A    tesseract-ocr-read-only/training/langdata/deu
A    tesseract-ocr-read-only/training/langdata/deu/deu.unicharambigs
A    tesseract-ocr-read-only/training/langdata/deu/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/deu/deu.params-model
A    tesseract-ocr-read-only/training/langdata/deu/desired_characters
A    tesseract-ocr-read-only/training/langdata/Cyrillic.unicharset
A    tesseract-ocr-read-only/training/langdata/hin
A    tesseract-ocr-read-only/training/langdata/hin/hin.config
A    tesseract-ocr-read-only/training/langdata/Katakana.unicharset
A    tesseract-ocr-read-only/training/langdata/Hebrew.unicharset
A    tesseract-ocr-read-only/training/langdata/tam
A    tesseract-ocr-read-only/training/langdata/tam/tam.config
A    tesseract-ocr-read-only/training/langdata/tam/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/tam/tam.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Hangul.unicharset
A    tesseract-ocr-read-only/training/langdata/Devanagari.xheights
A    tesseract-ocr-read-only/training/langdata/vie
A    tesseract-ocr-read-only/training/langdata/vie/alphabet
A    tesseract-ocr-read-only/training/langdata/vie/vie.params-model
A    tesseract-ocr-read-only/training/langdata/vie/vie.config
A    tesseract-ocr-read-only/training/langdata/vie/vie.unicharambigs
A    tesseract-ocr-read-only/training/langdata/tel
A    tesseract-ocr-read-only/training/langdata/tel/tel.unicharambigs
A    tesseract-ocr-read-only/training/langdata/tel/tel.params-model
A    tesseract-ocr-read-only/training/langdata/tel/tel.config
A    tesseract-ocr-read-only/training/langdata/tel/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/Arabic.unicharset
A    tesseract-ocr-read-only/training/langdata/Oriya.unicharset
A    tesseract-ocr-read-only/training/langdata/Han.xheights
A    tesseract-ocr-read-only/training/langdata/Tamil.xheights
A    tesseract-ocr-read-only/training/langdata/Cherokee.unicharset
A    tesseract-ocr-read-only/training/langdata/hun
A    tesseract-ocr-read-only/training/langdata/hun/hun.unicharambigs
A    tesseract-ocr-read-only/training/langdata/swa
A    tesseract-ocr-read-only/training/langdata/swa/swa.unicharambigs
A    tesseract-ocr-read-only/training/langdata/kor
A    tesseract-ocr-read-only/training/langdata/kor/kor.config
A    tesseract-ocr-read-only/training/langdata/kor/kor.unicharambigs
A    tesseract-ocr-read-only/training/langdata/kor/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/kor/kor.params-model
A    tesseract-ocr-read-only/training/langdata/vocr_url
A    tesseract-ocr-read-only/training/langdata/vocr_url/vocr_url.config
A    tesseract-ocr-read-only/training/langdata/common.punc
A    tesseract-ocr-read-only/training/langdata/Hiragana.xheights
A    tesseract-ocr-read-only/training/langdata/Katakana.xheights
A    tesseract-ocr-read-only/training/langdata/Ogham.unicharset
A    tesseract-ocr-read-only/training/langdata/ukr
A    tesseract-ocr-read-only/training/langdata/ukr/ukr.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Runic.xheights
A    tesseract-ocr-read-only/training/langdata/Malayalam.unicharset
A    tesseract-ocr-read-only/training/langdata/Arabic.xheights
A    tesseract-ocr-read-only/training/langdata/Oriya.xheights
A    tesseract-ocr-read-only/training/langdata/Cherokee.xheights
A    tesseract-ocr-read-only/training/langdata/Ethiopic.unicharset
A    tesseract-ocr-read-only/training/langdata/Myanmar.unicharset
A    tesseract-ocr-read-only/training/langdata/fra
A    tesseract-ocr-read-only/training/langdata/fra/fra.unicharambigs
A    tesseract-ocr-read-only/training/langdata/fra/fra.cube-unicharset
A    tesseract-ocr-read-only/training/langdata/fra/fra.params-model
A    tesseract-ocr-read-only/training/langdata/fra/fra.cube-word-dawg
A    tesseract-ocr-read-only/training/langdata/fra/desired_characters
A    tesseract-ocr-read-only/training/langdata/rus
A    tesseract-ocr-read-only/training/langdata/rus/rus.cube-word-dawg
A    tesseract-ocr-read-only/training/langdata/rus/rus.unicharambigs
A    tesseract-ocr-read-only/training/langdata/rus/rus.cube-unicharset
A    tesseract-ocr-read-only/training/langdata/rus/desired_characters
A    tesseract-ocr-read-only/training/langdata/chi_tra
A    tesseract-ocr-read-only/training/langdata/chi_tra/chi_tra.unicharambigs
A    tesseract-ocr-read-only/training/langdata/chi_tra/chi_tra.params-model
A    tesseract-ocr-read-only/training/langdata/chi_tra/forbidden_characters
A    tesseract-ocr-read-only/training/langdata/chi_tra/chi_tra.config
A    tesseract-ocr-read-only/training/langdata/chi_tra/desired_characters
A    tesseract-ocr-read-only/training/langdata/tur
A    tesseract-ocr-read-only/training/langdata/tur/desired_characters
A    tesseract-ocr-read-only/training/langdata/ita_old
A    tesseract-ocr-read-only/training/langdata/ita_old/desired_characters
A    tesseract-ocr-read-only/training/langdata/Armenian.xheights
A    tesseract-ocr-read-only/training/langdata/ell
A    tesseract-ocr-read-only/training/langdata/ell/ell.config
A    tesseract-ocr-read-only/training/langdata/ell/ell.unicharambigs
A    tesseract-ocr-read-only/training/langdata/Ogham.xheights
A    tesseract-ocr-read-only/training/langdata/ita
A    tesseract-ocr-read-only/training/langdata/ita/ita.config
A    tesseract-ocr-read-only/training/langdata/ita/ita.cube-word-dawg
A    tesseract-ocr-read-only/training/langdata/ita/ita.unicharambigs
A    tesseract-ocr-read-only/training/langdata/ita/ita.special-words
A    tesseract-ocr-read-only/training/langdata/ita/ita.cube-unicharset
A    tesseract-ocr-read-only/training/langdata/ita/ita.params-model
A    tesseract-ocr-read-only/training/langdata/ita/desired_characters
A    tesseract-ocr-read-only/training/dawg2wordlist.cpp
A    tesseract-ocr-read-only/training/set_unicharset_properties.cpp
A    tesseract-ocr-read-only/training/stringrenderer.cpp
A    tesseract-ocr-read-only/INSTALL.SVN
A    tesseract-ocr-read-only/classify
A    tesseract-ocr-read-only/classify/flexfx.h
A    tesseract-ocr-read-only/classify/intmatcher.h
A    tesseract-ocr-read-only/classify/mfdefs.cpp
A    tesseract-ocr-read-only/classify/mf.h
A    tesseract-ocr-read-only/classify/mfoutline.h
A    tesseract-ocr-read-only/classify/extern.h
A    tesseract-ocr-read-only/classify/extract.cpp
A    tesseract-ocr-read-only/classify/shapeclassifier.h
A    tesseract-ocr-read-only/classify/cutoffs.h
A    tesseract-ocr-read-only/classify/mastertrainer.cpp
A    tesseract-ocr-read-only/classify/normfeat.h
A    tesseract-ocr-read-only/classify/classify.h
A    tesseract-ocr-read-only/classify/kdtree.h
A    tesseract-ocr-read-only/classify/fxdefs.h
A    tesseract-ocr-read-only/classify/protos.cpp
A    tesseract-ocr-read-only/classify/xform2d.h
A    tesseract-ocr-read-only/classify/intfeaturespace.h
A    tesseract-ocr-read-only/classify/clusttool.cpp
A    tesseract-ocr-read-only/classify/tessclassifier.h
A    tesseract-ocr-read-only/classify/intfx.cpp
A    tesseract-ocr-read-only/classify/picofeat.h
A    tesseract-ocr-read-only/classify/float2int.cpp
A    tesseract-ocr-read-only/classify/adaptive.h
A    tesseract-ocr-read-only/classify/intfeaturemap.cpp
A    tesseract-ocr-read-only/classify/shapeclassifier.cpp
A    tesseract-ocr-read-only/classify/mfdefs.h
A    tesseract-ocr-read-only/classify/cutoffs.cpp
A    tesseract-ocr-read-only/classify/normfeat.cpp
A    tesseract-ocr-read-only/classify/classify.cpp
A    tesseract-ocr-read-only/classify/fxdefs.cpp
A    tesseract-ocr-read-only/classify/extract.h
A    tesseract-ocr-read-only/classify/xform2d.cpp
A    tesseract-ocr-read-only/classify/tessclassifier.cpp
A    tesseract-ocr-read-only/classify/mastertrainer.h
A    tesseract-ocr-read-only/classify/featdefs.h
A    tesseract-ocr-read-only/classify/normmatch.cpp
A    tesseract-ocr-read-only/classify/mfx.cpp
A    tesseract-ocr-read-only/classify/intfeaturedist.cpp
A    tesseract-ocr-read-only/classify/protos.h
A    tesseract-ocr-read-only/classify/clusttool.h
A    tesseract-ocr-read-only/classify/adaptive.cpp
A    tesseract-ocr-read-only/classify/intfx.h
A    tesseract-ocr-read-only/classify/trainingsampleset.h
A    tesseract-ocr-read-only/classify/sampleiterator.h
A    tesseract-ocr-read-only/classify/fpoint.h
A    tesseract-ocr-read-only/classify/blobclass.cpp
A    tesseract-ocr-read-only/classify/adaptmatch.cpp
A    tesseract-ocr-read-only/classify/float2int.h
A    tesseract-ocr-read-only/classify/shapetable.cpp
A    tesseract-ocr-read-only/classify/intfeaturemap.h
A    tesseract-ocr-read-only/classify/outfeat.h
A    tesseract-ocr-read-only/classify/intproto.cpp
A    tesseract-ocr-read-only/classify/featdefs.cpp
A    tesseract-ocr-read-only/classify/ocrfeatures.cpp
A    tesseract-ocr-read-only/classify/trainingsample.h
A    tesseract-ocr-read-only/classify/chartoname.h
A    tesseract-ocr-read-only/classify/cluster.h
A    tesseract-ocr-read-only/classify/trainingsampleset.cpp
A    tesseract-ocr-read-only/classify/sampleiterator.cpp
A    tesseract-ocr-read-only/classify/flexfx.cpp
A    tesseract-ocr-read-only/classify/normmatch.h
A    tesseract-ocr-read-only/classify/intmatcher.cpp
A    tesseract-ocr-read-only/classify/errorcounter.h
A    tesseract-ocr-read-only/classify/intfeaturedist.h
A    tesseract-ocr-read-only/classify/fpoint.cpp
A    tesseract-ocr-read-only/classify/mfx.h
A    tesseract-ocr-read-only/classify/mfoutline.cpp
A    tesseract-ocr-read-only/classify/mf.cpp
A    tesseract-ocr-read-only/classify/outfeat.cpp
A    tesseract-ocr-read-only/classify/blobclass.h
A    tesseract-ocr-read-only/classify/shapetable.h
A    tesseract-ocr-read-only/classify/trainingsample.cpp
A    tesseract-ocr-read-only/classify/kdtree.cpp
A    tesseract-ocr-read-only/classify/chartoname.cpp
A    tesseract-ocr-read-only/classify/cluster.cpp
A    tesseract-ocr-read-only/classify/intfeaturespace.cpp
A    tesseract-ocr-read-only/classify/intproto.h
A    tesseract-ocr-read-only/classify/ocrfeatures.h
A    tesseract-ocr-read-only/classify/Makefile.am
A    tesseract-ocr-read-only/classify/errorcounter.cpp
A    tesseract-ocr-read-only/classify/picofeat.cpp
A    tesseract-ocr-read-only/cube
A    tesseract-ocr-read-only/cube/search_object.h
A    tesseract-ocr-read-only/cube/char_samp.h
A    tesseract-ocr-read-only/cube/bmp_8.cpp
A    tesseract-ocr-read-only/cube/lang_model.h
A    tesseract-ocr-read-only/cube/cube_tuning_params.h
A    tesseract-ocr-read-only/cube/cached_file.h
A    tesseract-ocr-read-only/cube/word_altlist.h
A    tesseract-ocr-read-only/cube/char_altlist.h
A    tesseract-ocr-read-only/cube/cube_line_object.h
A    tesseract-ocr-read-only/cube/classifier_factory.h
A    tesseract-ocr-read-only/cube/word_size_model.cpp
A    tesseract-ocr-read-only/cube/char_set.h
A    tesseract-ocr-read-only/cube/char_samp.cpp
A    tesseract-ocr-read-only/cube/beam_search.h
A    tesseract-ocr-read-only/cube/cube_utils.cpp
A    tesseract-ocr-read-only/cube/feature_chebyshev.h
A    tesseract-ocr-read-only/cube/feature_hybrid.h
A    tesseract-ocr-read-only/cube/tess_lang_mod_edge.cpp
A    tesseract-ocr-read-only/cube/tess_lang_model.h
A    tesseract-ocr-read-only/cube/cube_object.cpp
A    tesseract-ocr-read-only/cube/cube_tuning_params.cpp
A    tesseract-ocr-read-only/cube/word_altlist.cpp
A    tesseract-ocr-read-only/cube/char_altlist.cpp
A    tesseract-ocr-read-only/cube/cube_line_object.cpp
A    tesseract-ocr-read-only/cube/classifier_factory.cpp
A    tesseract-ocr-read-only/cube/word_unigrams.cpp
A    tesseract-ocr-read-only/cube/search_column.cpp
A    tesseract-ocr-read-only/cube/classifier_base.h
A    tesseract-ocr-read-only/cube/beam_search.cpp
A    tesseract-ocr-read-only/cube/feature_base.h
A    tesseract-ocr-read-only/cube/feature_chebyshev.cpp
A    tesseract-ocr-read-only/cube/feature_bmp.h
A    tesseract-ocr-read-only/cube/cube_line_segmenter.cpp
A    tesseract-ocr-read-only/cube/cube_search_object.h
A    tesseract-ocr-read-only/cube/tess_lang_model.cpp
A    tesseract-ocr-read-only/cube/con_comp.h
A    tesseract-ocr-read-only/cube/cube_utils.h
A    tesseract-ocr-read-only/cube/hybrid_neural_net_classifier.h
A    tesseract-ocr-read-only/cube/tess_lang_mod_edge.h
A    tesseract-ocr-read-only/cube/char_samp_set.cpp
A    tesseract-ocr-read-only/cube/cube_object.h
A    tesseract-ocr-read-only/cube/search_node.cpp
A    tesseract-ocr-read-only/cube/tuning_params.h
A    tesseract-ocr-read-only/cube/altlist.cpp
A    tesseract-ocr-read-only/cube/string_32.h
A    tesseract-ocr-read-only/cube/conv_net_classifier.h
A    tesseract-ocr-read-only/cube/word_unigrams.h
A    tesseract-ocr-read-only/cube/char_samp_enum.h
A    tesseract-ocr-read-only/cube/char_bigrams.h
A    tesseract-ocr-read-only/cube/search_column.h
A    tesseract-ocr-read-only/cube/feature_bmp.cpp
A    tesseract-ocr-read-only/cube/cube_search_object.cpp
A    tesseract-ocr-read-only/cube/word_list_lang_model.h
A    tesseract-ocr-read-only/cube/con_comp.cpp
A    tesseract-ocr-read-only/cube/hybrid_neural_net_classifier.cpp
A    tesseract-ocr-read-only/cube/cube_line_segmenter.h
A    tesseract-ocr-read-only/cube/cached_file.cpp
A    tesseract-ocr-read-only/cube/lang_mod_edge.h
A    tesseract-ocr-read-only/cube/bmp_8.h
A    tesseract-ocr-read-only/cube/char_samp_set.h
A    tesseract-ocr-read-only/cube/conv_net_classifier.cpp
A    tesseract-ocr-read-only/cube/search_node.h
A    tesseract-ocr-read-only/cube/char_bigrams.cpp
A    tesseract-ocr-read-only/cube/char_samp_enum.cpp
A    tesseract-ocr-read-only/cube/altlist.h
A    tesseract-ocr-read-only/cube/word_list_lang_model.cpp
A    tesseract-ocr-read-only/cube/Makefile.am
A    tesseract-ocr-read-only/cube/char_set.cpp
A    tesseract-ocr-read-only/cube/cube_const.h
A    tesseract-ocr-read-only/cube/word_size_model.h
A    tesseract-ocr-read-only/cube/feature_hybrid.cpp
 U   tesseract-ocr-read-only
Checked out revision 985.

dell-13-10@dell1310-OptiPlex-330:~$ cd tesseract-ocr-read-only-985/

dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only-985$ sudo apt-get install autoconf automake libtool libleptonica-dev
[sudo] password for dell-13-10:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
autoconf is already the newest version.
automake is already the newest version.
libtool is already the newest version.
libleptonica-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only-985$  ./autogen.sh
./autogen.sh: 30: [: ==: unexpected operator

Running aclocal
Running libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running autoheader
Running automake --add-missing --copy
configure.ac:75: installing 'config/config.guess'
configure.ac:75: installing 'config/config.sub'
configure.ac:60: installing 'config/install-sh'
configure.ac:60: installing 'config/missing'
api/Makefile.am: installing 'config/depcomp'

Running autoconf

All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only-985$  ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking --enable-graphics argument... yes
checking --enable-embedded argument... no
checking --enable-opencl argument... no
checking --enable-visibility argument... no
checking --enable-multiple-libraries argument... no
checking whether to use tessdata-prefix... yes
checking whether to enable debugging... no
checking for g++... no
checking whether the C++ compiler works... no
configure: error: in `/home/dell-13-10/tesseract-ocr-read-only-985':

configure: error: C++ compiler cannot create executables
See `config.log' for more details
dell-13-10@dell1310-OptiPlex-330:~/tesseract-ocr-read-only-985$

config.log

Sriranga(80yrs)

unread,
Jan 13, 2014, 3:53:45 AM1/13/14
to tesser...@googlegroups.com
Downloaded r-985 from svn. compiled in VS2008;
======================================================
Abstract of errors listed for needful below:
1).\..\api\pdfrenderer.cpp(496) : warning C4101: 'b0' : unreferenced local variable
2)1>..\..\api\pdfrenderer.cpp(498) : warning C4101: 'b2' : unreferenced local variable
3)1>..\..\api\pdfrenderer.cpp(497) : warning C4101: 'b1' : unreferenced local variable
4)1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
5)
1>..\..\ccstruct\werd.cpp(468) : warning C4804: '>' : unsafe use of type 'bool' in operation
6)1>..\..\ccstruct\seam.cpp(170) : warning C4101: 'test_index' : unreferenced local variable
7)
1>..\..\ccstruct\seam.cpp(169) : warning C4101: 'blob' : unreferenced local variable
8) 1>..\..\ccstruct\seam.cpp(200) : warning C4101: 'test_index' : unreferenced  local variable
9) 1>..\..\wordrec\findseam.cpp(199) : warning C4101: 'x' : unreferenced local variable
10)2>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
=====================================================
 Build log displayed in VS2008 are funished below:


1>------ Build started: Project: libtesseract303, Configuration: LIB_Release Win32 ------
1>Compiling...
1>adaptions.cpp
1>openclwrapper.cpp
1>par_control.cpp
1>pdfrenderer.cpp
1>..\..\api\pdfrenderer.cpp(496) : warning C4101: 'b0' : unreferenced local variable
1>..\..\api\pdfrenderer.cpp(498) : warning C4101: 'b2' : unreferenced local variable
1>..\..\api\pdfrenderer.cpp(497) : warning C4101: 'b1' : unreferenced local variable

1>params_model.cpp
1>lm_state.cpp
1>lm_pain_points.cpp
1>lm_consistency.cpp
1>baselinedetect.cpp
1>dawg_cache.cpp
1>shapeclassifier.cpp
1>universalambigs.cpp
1>scanutils.cpp
1>params_training_featdef.cpp
1>blamer.cpp
1>superscript.cpp
1>renderer.cpp
1>xform2d.cpp
1>workingpartset.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>wordseg.cpp
1>tfacepp.cpp
1>tface.cpp
1>textord.cpp
1>textlineprojection.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>tessvars.cpp
1>tesseractclass.cpp
1>tesseract_cube_combiner.cpp
1>tessedit.cpp
1>tessdatamanager.cpp
1>tessclassifier.cpp
1>tessbox.cpp
1>tess_lang_model.cpp
1>tess_lang_mod_edge.cpp
1>tabvector.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tablerecog.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tablefind.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>tabfind.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>Generating Code...
1>Compiling...
1>svutil.cpp
1>svpaint.cpp

1>svmnode.cpp
1>structures.cpp
1>strtok_r.cpp
1>strokewidth.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>strngs.cpp

1>stopper.cpp
1>stepblob.cpp
1>statistc.cpp
1>split.cpp
1>sortflts.cpp
1>sigmoid_table.cpp
1>shapetable.cpp
1>serialis.cpp
1>segsearch.cpp
1>search_node.cpp
1>search_column.cpp
1>seam.cpp
1>..\..\ccstruct\seam.cpp(170) : warning C4101: 'test_index' : unreferenced local variable
1>..\..\ccstruct\seam.cpp(169) : warning C4101: 'blob' : unreferenced local variable
1>..\..\ccstruct\seam.cpp(200) : warning C4101: 'test_index' : unreferenced local variable
1>scrollview.cpp
1>Generating Code...
1>Compiling...
1>scanedg.cpp

1>sampleiterator.cpp
1>resultiterator.cpp
1>render.cpp
1>reject.cpp
1>rejctmap.cpp
1>rect.cpp
1>recogtraining.cpp
1>ratngs.cpp
1>quspline.cpp
1>quadlsq.cpp
1>publictypes.cpp
1>protos.cpp
1>polyblk.cpp
1>polyaprx.cpp
1>points.cpp
1>plotedges.cpp
1>pitsync1.cpp
1>pithsync.cpp
1>pieces.cpp
1>Generating Code...
1>Compiling...
1>picofeat.cpp
1>pgedit.cpp
1>permdawg.cpp
1>pdblock.cpp
1>paramsd.cpp
1>params.cpp
1>paragraphs.cpp
1>pagewalk.cpp
1>pagesegmain.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>pageres.cpp
1>pageiterator.cpp
1>output.cpp
1>outlines.cpp
1>outfeat.cpp
1>otsuthr.cpp
1>osdetect.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>language_model.cpp
1>kdtree.cpp
1>intproto.cpp
1>intmatcher.cpp
1>intfx.cpp
1>intfeaturespace.cpp
1>intfeaturemap.cpp
1>intfeaturedist.cpp
1>input_file_buffer.cpp
1>indexmapbidi.cpp
1>imagefind.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>hyphen.cpp
1>hybrid_neural_net_classifier.cpp

1>gradechop.cpp
1>globaloc.cpp
1>gettimeofday.cpp
1>genblob.cpp
1>Generating Code...
1>Compiling...
1>gap_map.cpp
1>fxdefs.cpp
1>freelist.cpp
1>fpoint.cpp
1>fpchop.cpp
1>fontinfo.cpp
1>float2int.cpp
1>flexfx.cpp
1>fixxht.cpp
1>fixspace.cpp
1>findseam.cpp
1>..\..\wordrec\findseam.cpp(199) : warning C4101: 'x' : unreferenced local variable
1>feature_hybrid.cpp
1>feature_chebyshev.cpp
1>feature_bmp.cpp
1>featdefs.cpp
1>extract.cpp
1>errorcounter.cpp
1>errcode.cpp
1>equationdetectbase.cpp
1>equationdetect.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>Generating Code...
1>Compiling...
1>emalloc.cpp
1>elst2.cpp
1>elst.cpp
1>efio.cpp
1>edgloop.cpp
1>edgblob.cpp
1>drawtord.cpp
1>drawfx.cpp
1>drawedg.cpp
1>dppoint.cpp
1>docqual.cpp
1>dict.cpp
1>devanagari_processing.cpp
1>detlinefit.cpp
1>dawg.cpp
1>danerror.cpp
1>cutoffs.cpp
1>cutil_class.cpp
1>cutil.cpp
1>cubeclassifier.cpp
1>Generating Code...
1>Compiling...
1>cube_utils.cpp
1>cube_tuning_params.cpp
1>cube_search_object.cpp
1>cube_reco_context.cpp
1>cube_object.cpp
1>cube_line_segmenter.cpp
1>cube_line_object.cpp
1>cube_control.cpp
1>coutln.cpp
1>conv_net_classifier.cpp
1>control.cpp
1>context.cpp
1>con_comp.cpp
1>colpartitionset.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>colpartitiongrid.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>colpartition.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>colfind.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>clusttool.cpp
1>cluster.cpp
1>clst.cpp
1>Generating Code...
1>Compiling...
1>classify.cpp
1>classifier_factory.cpp
1>cjkpitch.cpp
1>chopper.cpp
1>chop.cpp
1>chartoname.cpp
1>char_set.cpp
1>char_samp_set.cpp
1>char_samp_enum.cpp
1>char_samp.cpp
1>char_bigrams.cpp
1>char_altlist.cpp
1>ccutil.cpp
1>ccstruct.cpp
1>ccnontextdetect.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>capi.cpp

1>callcpp.cpp
1>cached_file.cpp
1>boxword.cpp
1>boxread.cpp
1>Generating Code...
1>Compiling...
1>bmp_8.cpp
1>blread.cpp
1>blobs.cpp
1>blobgrid.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory

1>blobclass.cpp
1>blobbox.cpp
1>blkocc.cpp
1>bitvector.cpp
1>bitvec.cpp
1>bits16.cpp
1>beam_search.cpp
1>bbgrid.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>basedir.cpp
1>baseapi.cpp
1>associate.cpp
1>applybox.cpp

1>ambigs.cpp
1>altlist.cpp
1>alignedblob.cpp
1>..\..\ccutil\hashfn.h(25) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
1>adaptmatch.cpp

1>Generating Code...
1>Compiling...
1>adaptive.cpp
1>Generating Code...
1>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\libtesseract\LIB_Release\BuildLog.htm"
1>libtesseract303 - 20 error(s), 8 warning(s)
2>------ Build started: Project: ambiguous_words, Configuration: LIB_Release Win32 ------
3>------ Build started: Project: dawg2wordlist, Configuration: LIB_Release Win32 ------

2>Compiling...
3>Compiling...
2>ambiguous_words.cpp
3>dawg2wordlist.cpp
3>Compiling resources...
2>Compiling resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
2>Copyright (C) Microsoft Corporation.  All rights reserved.
3>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
3>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Linking...
3>Linking...
2>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
3>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
3>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\dawg2wordlist\LIB_Release\BuildLog.htm"

3>dawg2wordlist - 1 error(s), 0 warning(s)
2>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\ambiguous_words\LIB_Release\BuildLog.htm"

2>ambiguous_words - 1 error(s), 0 warning(s)
4>------ Build started: Project: classifier_tester, Configuration: LIB_Release Win32 ------
4>Compiling...
4>classifier_tester.cpp
5>------ Build started: Project: wordlist2dawg, Configuration: LIB_Release Win32 ------

5>Compiling...
5>wordlist2dawg.cpp
4>Compiling resources...
4>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
4>Copyright (C) Microsoft Corporation.  All rights reserved.
4>Linking...
4>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
4>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\classifier_tester\LIB_Release\BuildLog.htm"

4>classifier_tester - 1 error(s), 0 warning(s)
5>Compiling resources...
5>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
5>Copyright (C) Microsoft Corporation.  All rights reserved.
5>Linking...
6>------ Build started: Project: unicharset_extractor, Configuration: LIB_Release Win32 ------
6>Compiling...
5>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
5>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\wordlist2dawg\LIB_Release\BuildLog.htm"

5>wordlist2dawg - 1 error(s), 0 warning(s)
6>unicharset_extractor.cpp
7>------ Build started: Project: mftraining, Configuration: LIB_Release Win32 ------

7>Compiling...
7>mftraining.cpp
6>Compiling resources...
6>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
6>Copyright (C) Microsoft Corporation.  All rights reserved.
6>Linking...
6>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
6>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\unicharset_extractor\LIB_Release\BuildLog.htm"

6>unicharset_extractor - 1 error(s), 0 warning(s)
7>mergenf.cpp
8>------ Build started: Project: combine_tessdata, Configuration: LIB_Release Win32 ------
8>Compiling...
8>combine_tessdata.cpp
7>Generating Code...

8>Compiling resources...
8>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
8>Copyright (C) Microsoft Corporation.  All rights reserved.
8>Linking...
7>Compiling resources...
8>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'

7>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
7>Copyright (C) Microsoft Corporation.  All rights reserved.
7>Linking...
8>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\combine_tessdata\LIB_Release\BuildLog.htm"

8>combine_tessdata - 1 error(s), 0 warning(s)
7>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
7>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\mftraining\LIB_Release\BuildLog.htm"

7>mftraining - 1 error(s), 0 warning(s)
9>------ Build started: Project: cntraining, Configuration: LIB_Release Win32 ------
9>Compiling...
10>------ Build started: Project: tesseract, Configuration: LIB_Release Win32 ------
10>Compiling...
9>cntraining.cpp

10>tesseractmain.cpp
9>Compiling resources...
9>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
9>Copyright (C) Microsoft Corporation.  All rights reserved.
9>Linking...
9>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
9>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\cntraining\LIB_Release\BuildLog.htm"

9>cntraining - 1 error(s), 0 warning(s)
10>..\..\api\tesseractmain.cpp(37) : fatal error C1083: Cannot open include file: 'openclwrapper.h': No such file or directory
10>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\tesseract\LIB_Release\BuildLog.htm"

10>tesseract - 1 error(s), 0 warning(s)
11>------ Build started: Project: shapeclustering, Configuration: LIB_Release Win32 ------

11>Compiling...
11>shapeclustering.cpp
11>Compiling resources...
11>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
11>Copyright (C) Microsoft Corporation.  All rights reserved.
11>Linking...
11>LINK : fatal error LNK1181: cannot open input file '..\lib_release\libtesseract303-static.lib'
11>Build log was saved at "file://d:\tess-svn985BuildFolder\Build folder\tesseract-ocr-read-only-985\vs2008\shapeclustering\LIB_Release\BuildLog.htm"

11>shapeclustering - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 11 failed, 0 up-to-date, 0 skipped ==========

Quan Nguyen

unread,
Jan 13, 2014, 9:41:04 PM1/13/14
to tesser...@googlegroups.com
Build r987 in VS2010 Results

In LIB_Release configuration: It completed successfully!

There were some warning C4101: unreferenced local variable, but nothing major. There was one C4804 that probably needs a look at:


1>..\..\ccstruct\werd.cpp(468): warning C4804: '>' : unsafe use of type 'bool' in operation
on the statement: not_found_box.y_overlap(a_blob_box) > 0.8, where y_overlap method returns a bool type, so a > operation is not valid.

In DLL_Release configuration:

Error    1    error C2491: 'GenericVector<T>::init' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    538    1    tesseract
Error    2    error C2491: 'GenericVector<T>::~GenericVector' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    543    1    tesseract
Error    3    error C2491: 'GenericVector<T>::reserve' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    557    1    tesseract
Error    4    error C2491: 'GenericVector<T>::double_the_size' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    567    1    tesseract
Error    5    error C2491: 'GenericVector<T>::init_to_size' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    576    1    tesseract
Error    6    error C2491: 'GenericVector<T>::get' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    584    1    tesseract
Error    7    error C2491: 'GenericVector<T>::operator []' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    590    1    tesseract
Error    8    error C2491: 'GenericVector<T>::back' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    596    1    tesseract
Error    9    error C2491: 'GenericVector<T>::pop_back' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    602    1    tesseract
Error    10    error C2491: 'GenericVector<T>::set' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    609    1    tesseract
Error    11    error C2491: 'GenericVector<T>::insert' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    624    1    tesseract
Error    12    error C2491: 'GenericVector<T>::remove' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    635    1    tesseract
Error    13    error C2491: 'GenericVector<T>::contains_index' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    641    1    tesseract
Error    14    error C2491: 'GenericVector<T>::get_index' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    652    1    tesseract
Error    15    error C2491: 'GenericVector<T>::contains' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    658    1    tesseract
Error    16    error C2491: 'GenericVector<T>::push_back' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    669    1    tesseract
Error    17    error C2491: 'GenericVector<T>::push_back_new' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    677    1    tesseract
Error    18    error C2491: 'GenericVector<T>::push_front' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    689    1    tesseract
Error    19    error C2491: 'GenericVector<T>::operator +=' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    694    1    tesseract
Error    20    error C2491: 'GenericVector<T>::operator +=' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    703    1    tesseract
Error    21    error C2491: 'GenericVector<T>::operator =' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    710    1    tesseract
Error    22    error C2491: 'GenericVector<T>::set_clear_callback' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    717    1    tesseract
Error    23    error C2491: 'GenericVector<T>::set_compare_callback' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    725    1    tesseract
Error    24    error C2491: 'GenericVector<T>::clear' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    747    1    tesseract
Error    25    error C2491: 'GenericVector<T>::delete_data_pointers' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    755    1    tesseract
Error    26    error C2491: 'GenericVector<T>::write' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    775    1    tesseract
Error    27    error C2491: 'GenericVector<T>::read' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    803    1    tesseract
Error    28    error C2491: 'GenericVector<T>::Serialize' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    812    1    tesseract
Error    29    error C2491: 'GenericVector<T>::DeSerialize' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    831    1    tesseract
Error    30    error C2491: 'GenericVector<T>::SerializeClasses' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    843    1    tesseract
Error    31    error C2491: 'GenericVector<T>::DeSerializeClasses' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    861    1    tesseract
Error    32    error C2491: 'GenericVector<T>::move' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    878    1    tesseract
Error    33    error C2491: 'GenericVector<T>::sort' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    883    1    tesseract
Error    34    error C2491: 'GenericVector<T>::choose_nth_item' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    943    1    tesseract

In LIB_OpenCL_Release configuration:

Error    1    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    libtesseract303
Error    2    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    libtesseract303
Error    7    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    libtesseract303
Error    8    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    libtesseract303
Error    12    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    libtesseract303
Error    14    error C1083: Cannot open include file: 'CL/cl.h': No such file or directory    c:\projects\tesseract\tesseract-3.0.3\opencl\opencl_device_selection.h    18    1    tesseract


zdenko podobny

unread,
Jan 14, 2014, 2:24:44 AM1/14/14
to tesser...@googlegroups.com
For OpenCL you need to have installed OpenCL driver and header file. On windows I have Intel card and OpenCL libraries should be installed together with graphic card drivers, but I need to download and install additional package (with header files) if I want to build OpenCL app. See my remarks/experiences on blog[1]. 

If you have other card provide (AMD, NVIDIA), than you probably need to add (or modified because for AMD on Windows I tried to guess it) path for compiler and linker.

If you (and other testers) provide me correct paths for different OpenCL providers (on all systems :-) ), I can adjust build systems.

Zdenko


zdenko podobny

unread,
Jan 14, 2014, 4:34:30 AM1/14/14
to tesser...@googlegroups.com
On Tue, Jan 14, 2014 at 3:41 AM, Quan Nguyen <nguy...@gmail.com> wrote:
DLL_Release configuration

regarding DLL_Release I just removed (svn r988) dll-interface for class 'GenericVector<T>' as "quick fix". It would be great if somebody experienced with creating windows dll have a look on this. Here is short description of problem:

Without dll-interface for class 'GenericVector<T>' VS2010 complains:

tesseract-ocr\api\renderer.h(202): warning C4251: 'tesseract::TessPDFRenderer::offsets_' : class 'GenericVector<T>' needs to have dll-interface to be used by clients of class 'tesseract::TessPDFRenderer'
1>          with
1>          [
1>              T=long
1>          ]

With dll-interface for class 'GenericVector<T>' VS2010 complains (when compiling tesseract executable against dll):


Error    1    error C2491: 'GenericVector<T>::init' : definition of dllimport function not allowed    C:\Projects\tesseract\tesseract-3.0.3\ccutil\genericvector.h    538


Zdenko

Quan Nguyen

unread,
Jan 22, 2014, 10:30:04 PM1/22/14
to tesser...@googlegroups.com
Built r1006 using VS2010. DLL_Release and LIB_Release completed successfully.

Quan Nguyen

unread,
Feb 8, 2014, 11:16:07 AM2/8/14
to tesser...@googlegroups.com
I'm trying to build r1050 in VS2010 and have the following errors. Please advise.

Error    1    error C2065: 'L_COMP_DATA' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    517    1    libtesseract303
Error    2    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    517    1    libtesseract303
Error    3    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    522    1    libtesseract303
Error    4    error C3861: 'pixGenerateCIData': identifier not found    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    522    1    libtesseract303
Error    5    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    541    1    libtesseract303
Error    6    error C2227: left of '->ncolors' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    541    1    libtesseract303
Error    7    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    543    1    libtesseract303
Error    8    error C2227: left of '->ncolors' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    543    1    libtesseract303
Error    9    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    543    1    libtesseract303
Error    10    error C2227: left of '->cmapdatahex' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    543    1    libtesseract303
Error    11    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    546    1    libtesseract303
Error    12    error C2227: left of '->spp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    546    1    libtesseract303
Error    13    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    14    error C2227: left of '->nbytescomp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    15    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    16    error C2227: left of '->w' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    17    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    18    error C2227: left of '->h' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    19    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    20    error C2227: left of '->bps' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    21    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    22    error C2227: left of '->w' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    576    1    libtesseract303
Error    23    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    585    1    libtesseract303
Error    24    error C2227: left of '->nbytescomp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    585    1    libtesseract303
Error    25    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    590    1    libtesseract303
Error    26    error C2227: left of '->datacomp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    590    1    libtesseract303
Error    27    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    590    1    libtesseract303
Error    28    error C2227: left of '->nbytescomp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    590    1    libtesseract303
Error    29    error C2065: 'cid' : undeclared identifier    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    591    1    libtesseract303
Error    30    error C2227: left of '->nbytescomp' must point to class/struct/union/generic type    C:\Projects\tesseract\tesseract-3.0.3\api\pdfrenderer.cpp    591    1    libtesseract303
Error    31    error LNK1181: cannot open input file 'liblept170-static-mtdll.lib'    C:\Projects\tesseract\tesseract-3.0.3\vs2010\tesseract\LINK    tesseract

zdenko podobny

unread,
Feb 8, 2014, 12:03:28 PM2/8/14
to tesser...@googlegroups.com
It looks like you do not have leptonica 1.70. You can not build 3.03 version with leptonica 1.68/1.69. You need to compile it by yourself...

Zdenko


Quan Nguyen

unread,
Feb 8, 2014, 12:24:39 PM2/8/14
to tesser...@googlegroups.com
Thank you. That's what I suspected. I'm headed to https://github.com/charlesw/tesseract-vs2012/tree/3.03 to see if I can follow the instructions to build Tesseract dependencies.

Quan

Charles Weld

unread,
Feb 10, 2014, 5:27:16 PM2/10/14
to tesser...@googlegroups.com
FYI I've just created a github release which contains the prebuilt binaries and header files: https://github.com/charlesw/tesseract-vs2012/releases/tag/v1.70

Charles Weld

unread,
Feb 10, 2014, 5:38:39 PM2/10/14
to tesser...@googlegroups.com
Forgot to add that if you want to use these binaries without applying the patch attached to https://groups.google.com/forum/#!topic/tesseract-dev/WhKDNnWRJ5Y for x64 support you'll need to copy the contents of ~/lib/Win32 to ~/lib and delete the Win32 and x64 folders. Also note that these binaries were built with VS 2013 and therefore depend on the Visual C++ Runtime (http://www.microsoft.com/en-au/download/details.aspx?id=40784). Finally I haven't tested compiling Tesseract using these binaries on earlier versions of visual studio so your mileage may very.

Quan Nguyen

unread,
Feb 10, 2014, 8:59:38 PM2/10/14
to tesser...@googlegroups.com
Charles,

Thanks for everything. I was able to build the Leptonica DLL/LIB and Tesseract 3.03 DLL using your provided VS2013 projects. I've successfully tested them with my Java JNA wrapper.

Sriranga(80yrs)

unread,
Feb 11, 2014, 6:35:10 AM2/11/14
to tesser...@googlegroups.com
Quan,
Will you kindly forward copies of exe files built by you? Trust you are updating the jboxeditor v.1 now.
With regards,
sriranga(80yrs)

temp name

unread,
Feb 27, 2014, 6:07:38 AM2/27/14
to tesser...@googlegroups.com
Quan,

I have a question for you. Can you please tell me which version of VS you have used.
I am using VS10 to build Tesseract 3.03  on win-7 64bit machine and got the same errors. I downloaded leptonica 1.70 and copied all the files form ~lib\Win32 to ~lib. But I still get the same errors.

Can you please tell me the steps for building Tesseract 3.03 with VS2010.

Thanks.

Quan Nguyen

unread,
Feb 27, 2014, 7:17:56 PM2/27/14
to tesser...@googlegroups.com
I used VS2013 Express to build Tess 3.03 following the directions given at Charles' site.

Thomas Peters

unread,
Apr 16, 2014, 9:10:35 PM4/16/14
to tesser...@googlegroups.com
I'm using Homebrew to checkout and compile the latest tesseract 3.03 (within a few hours of this post 2014-april-16, maybe noonish HST) and have stumbled upon some path problems when doing "make training-install". Admittedly, I don't know what I'm doing, and of course Homebrew should probably be the first contact I make. Yet, this post stated:

"I have hacked configure.ac to check for them an add the needed includes. Not sure if it will work on all platforms though, so please test."—Ray

So, perhaps the following info about the errors I'm getting about some paths might be relevant or helpful. Unfortunately, I haven't been able to resolve them, but mostly because I can imagine there are many ways to resolve this and I'm not sure which would be the right way, e.g. directly in tesseract files, or perhaps indirectly in Homebrew.


Here's the first relevant error I've encountered with "make training-install", which is with pango:

<----    begin quote: pango error    ---->
In file included from ligature_table.cpp:26:
./pango_font_info.h:30:10: fatal error: 'pango/pango-font.h' file not found
#include "pango/pango-font.h"
         ^
<----    end quote: pango error    ---->

I did a search for the file "pango-font.h" using the Finder and found the file in "/usr/local/include/" where I'd expected it, because of Homebrew. Specifically, it file was in "/usr/local/include/pango-1.0/pango/pango-font.h". From this I figured maybe the "pango-1.0" directory was the path problem. I don't know much of anything about how or where these paths are set, or what environments variables to set and how to not clobber them. Much of the contents of the include directory are symlinks, so I created yet another symlink to the pango stuff, but much more directly than stopping at "pango-1.0". In a Terminal window I typed:

"ln -s ../Cellar/pango/1.36.3/include/pango-1.0/pango"

This meant there was the previous "pango-1.0" symlink along with the new "pango" symlink. I used Homebrew to do a reinstall and apparently the new symlink helped it get past this path error. That got me thinking Homebrew needed to change how it created the symlink to pango, or perhaps create this other symlink in addition. At least, I was thinking that until I reviewed next error that occurred.


Here's the next error that happened after resolving the location of "pango-font.h" file, this time with "glib.h":

<----    begin quote: glib error    ---->
In file included from ligature_table.cpp:26:
In file included from ./pango_font_info.h:30:
In file included from /usr/local/include/pango/pango-font.h:25:
/usr/local/include/pango/pango-coverage.h:25:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^
<----    end quote: glib error    ---->

So now after being able to find "pango-font.h" with the new symlink I provided in my file system, that file refers to "pango-coverage.h" which in turn wants "glib.h". Any guess where "glib.h" is located? That's right, it's in a subdirectory of "/usr/local/include/". More specifically: "/usr/local/include/glib-2.0/glib.h". But according to the error, it's not trying to find it through a specific parent directory like the previous pango file.

So if I were to approach this error in the same way as the previous error, then I'd need a symlink directly to the file "glib.h" itself inside of "/usr/local/include/". That wasn't as acceptable of a solution to me this time, so now I'm trying to inform the involved parties about the paths not being complete: tesseract because they wrote the references (and because of the above quote), and Homebrew because it provides the build environment for me.


My question is: what would be the most appropriate fix for this?

Perhaps not using Homebrew? That is, does tesseract's "make training-install" work fine on OSX by some other approach than building with Homebrew?

Perhaps asking for Homebrew to code some better linking or better setting of build environment variables? And which link paths or which variables would those be?

Any ideas on that?

What gets me is that pango is obviously found during configuration because the "make training-install" option wouldn't be available, but the tesseract code can't find pango itself. That doesn't necessarily mean it's an issue with tesseract code because Homebrew might not be setting up the build environment variables acceptably. But I don't know anything, so I don't know.

I should mention that building and installing tesseract 3.03 with Homebrew using the command with "make install" in a formula works fine without any issues. It's just the "make training-install" that needs these new dependencies leading to these errors.

For now, I'll try to figure out where at Homebrew to compose a message for this.

Thomas Peters

unread,
Apr 17, 2014, 1:54:18 AM4/17/14
to tesser...@googlegroups.com
As a followup, it turns out I needed to include another dependency for Homebrew. After posting on their forums, someone pointed out the paths would be resolved if "depends_on 'pkg-config' => :build" was added to the head, since I was having homebrew check out the source for lack of URL to a tarball. Though, I don't know how this will all work out once there is a tarball to download.

So, I guess nevermind about the paths. The option "make training-install" builds without complaint with home-brew on a Mac OS X 10.9.2 system. Now to test it all out.

Nick White

unread,
Apr 17, 2014, 9:10:23 AM4/17/14
to tesser...@googlegroups.com
On Wed, Apr 16, 2014 at 10:54:18PM -0700, Thomas Peters wrote:
> As a followup, it turns out I needed to include another dependency for
> Homebrew. After posting on their forums, someone pointed out the paths would be
> resolved if "depends_on 'pkg-config' => :build" was added to the head, since I
> was having homebrew check out the source for lack of URL to a tarball. Though,
> I don't know how this will all work out once there is a tarball to download.

It's pretty likely that pkg-config is always a good thing to have
when installing Tesseract, if it's available. Can you ask the
homebrew people to add the dependency to their recipe, please? It's
very likely that the released tarball will have the same issues.

Thanks,

Nick
Reply all
Reply to author
Forward
0 new messages