Skip to content

Instantly share code, notes, and snippets.

@ultrasaurus
Created July 14, 2013 12:42
Show Gist options
  • Save ultrasaurus/5994155 to your computer and use it in GitHub Desktop.
Save ultrasaurus/5994155 to your computer and use it in GitHub Desktop.
tesseract build fails
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr
cd tesseract-ocr
sh ./autogen.sh
./configure
make
:
:
/usr/bin/ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
libtool: link: ranlib .libs/libtesseract.a
ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
libtool: link: rm -fr .libs/libtesseract.lax
libtool: link: ( cd ".libs" && rm -f "libtesseract.la" && ln -s "../libtesseract.la" "libtesseract.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -DLOCALEDIR=\"/usr/local/share/locale\" -I../ccutil -I../ccstruct -I../image -I../viewer -I../textord -I../dict -I../classify -I../ccmain -I../wordrec -I../cutil -I/usr/local/include/leptonica -g -O2 -MT tesseract-tesseractmain.o -MD -MP -MF .deps/tesseract-tesseractmain.Tpo -c -o tesseract-tesseractmain.o `test -f '../api/tesseractmain.cpp' || echo './'`../api/tesseractmain.cpp
mv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o tesseract tesseract-tesseractmain.o libtesseract.la -llept
libtool: link: g++ -g -O2 -o .libs/tesseract tesseract-tesseractmain.o -Wl,-bind_at_load ./.libs/libtesseract.dylib -llept
make[2]: *** No rule to make target `tesseractmain.h', needed by `all-am'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@ultrasaurus
Copy link
Author

$ make
make all-recursive
Making all in ccutil
make[3]: Nothing to be done for all-am'. Making all in viewer make[2]: Nothing to be done forall'.
Making all in cutil
make[2]: Nothing to be done for all'. Making all in image make[2]: Nothing to be done forall'.
Making all in ccstruct
make[2]: Nothing to be done for all'. Making all in dict make[2]: Nothing to be done forall'.
Making all in classify
make[2]: Nothing to be done for all'. Making all in wordrec make[2]: Nothing to be done forall'.
Making all in neural_networks/runtime
make[2]: Nothing to be done for all'. Making all in textord make[2]: Nothing to be done forall'.
Making all in cube
make[2]: Nothing to be done for all'. Making all in ccmain make[2]: Nothing to be done forall'.
Making all in api
make[2]: *** No rule to make target tesseractmain.h', needed byall-am'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
localhost:tesseract-ocr sarah$ svn log -v > log.txt
localhost:tesseract-ocr sarah$ svn log -v | grep D "tesseractmain.h"
grep: tesseractmain.h: No such file or directory
svn: Write error: Broken pipe

@ultrasaurus
Copy link
Author

Looks like tesseractmain was just refactored and tesseractmain.h deleted...


r861 | [email protected] | 2013-07-08 14:23:47 -0400 (Mon, 08 Jul 2013) | 1 line
Changed paths:
D /trunk/api/tesseractmain.h

remove unused code (tesseractmain.h)

r860 | [email protected] | 2013-07-08 14:21:10 -0400 (Mon, 08 Jul 2013) | 1 line
Changed paths:
M /trunk/api/tesseractmain.cpp
M /trunk/ccmain/adaptions.cpp
M /trunk/ccmain/applybox.cpp
M /trunk/ccmain/control.cpp
M /trunk/ccmain/control.h
M /trunk/ccmain/docqual.cpp
M /trunk/ccmain/docqual.h
:
:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment