Error, to build Tesseract without Cube OCR engine "./configure --disable-cube"

78 views
Skip to first unread message

KyoungMo Yang

unread,
Nov 11, 2016, 8:05:04 AM11/11/16
to tesseract-ocr


Tesseract release notes Feb 16 2016 - V3.04.01

  • Added OSD renderer for psm 0. Works for single page and multi-page images.
  • Improve tesstrain.sh script.
  • Simplify build and run of ScrollView.
  • Improved PDF output for OS X Preview utility.
  • INCOMPATIBLE fix to hOCR line height information - commit 134ebc3.
  • Added option to build Tesseract without Cube OCR engine (-DNO_CUBE_BUILD).
  • Enable OpenMP support.
                          <https://github.com/tesseract-ocr/tesseract/wiki/ReleaseNotes>

For building Tesseract without Cube OCR engine, we used "--disable-cube" option.
But, we found error such as cube_reco_context.h:29:24: fatal error: neural_net.h: No such file or directory
somebody help me.


$> ./configure --enable-opencl --disable-cube
....
config.status: creating Makefile
config.status: creating tesseract.pc
config.status: creating api/Makefile
config.status: creating ccmain/Makefile
config.status: creating opencl/Makefile
config.status: creating ccstruct/Makefile
config.status: creating ccutil/Makefile
config.status: creating classify/Makefile
config.status: creating cube/Makefile
config.status: creating cutil/Makefile
config.status: creating dict/Makefile
config.status: creating neural_networks/runtime/Makefile
config.status: creating textord/Makefile
config.status: creating viewer/Makefile
config.status: creating wordrec/Makefile
config.status: creating tessdata/Makefile
config.status: creating tessdata/configs/Makefile
config.status: creating tessdata/tessconfigs/Makefile
config.status: creating testing/Makefile
config.status: creating java/Makefile
config.status: creating java/com/Makefile
config.status: creating java/com/google/Makefile
config.status: creating java/com/google/scrollview/Makefile
config.status: creating java/com/google/scrollview/events/Makefile
config.status: creating java/com/google/scrollview/ui/Makefile
config.status: creating doc/Makefile
config.status: creating training/Makefile
config.status: creating config_auto.h
config.status: config_auto.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration is done.
You can now build and install tesseract by running:

$ make
$ sudo make install

Training tools can be build and installed (after building of tesseract) with:

$ make training
$ sudo make training-install



$> make
....
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -DUSE_OPENCL -O2 -DNDEBUG -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify -I../dict -I../wordrec -I../cutil -I../textord -I../opencl -I/opt/AMDAPP/include   -I/usr/include/leptonica -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -g -O2 -std=c++11 -MT tesseractclass.lo -MD -MP -MF .deps/tesseractclass.Tpo -c -o tesseractclass.lo tesseractclass.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DUSE_OPENCL -O2 -DNDEBUG -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify -I../dict -I../wordrec -I../cutil -I../textord -I../opencl -I/opt/AMDAPP/include -I/usr/include/leptonica -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tesseractclass.lo -MD -MP -MF .deps/tesseractclass.Tpo -c tesseractclass.cpp  -fPIC -DPIC -o .libs/tesseractclass.o
In file included from tesseractclass.cpp:46:0:
cube_reco_context.h:29:24: fatal error: neural_net.h: No such file or directory
compilation terminated.
...

Zdenko Podobný

unread,
Nov 11, 2016, 4:06:06 PM11/11/16
to tesser...@googlegroups.com
try recent master repository

Zdenko

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/beacf0fa-03c4-4957-a80f-e3d4dff05c79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages