> GOCRがシートIDの読み取りに失敗しているのかなと思いますが、
> sheetreaderをKOCRでコンパイルしてみて頂けませんでしょうか。
実は最初そのつもりでコンパイルしたのですが、コンパイルエラーが発生したの
で、GOCRでコンパイルておりました。
KOCRでコンパイルしたときのログは以下の通りです。
関連ヘッダファイルがみつからないようです。
$ git clone
https://code.google.com/p/sheet-reader
$ cd sheet-reader
$ ./configure
$ make
.............
gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/local/include -I/usr/local/cluscore -I/usr/include/libxml2 -I/usr/include/opencv -I../include -I../../kocr/src -DPREFIX="\"/usr/local\"" -g -DKOCR -MT cco_srOcrGocr.o -MD -MP -MF .deps/cco_srOcrGocr.Tpo -c -o cco_srOcrGocr.o cco_srOcrGocr.c
mv -f .deps/cco_srOcrGocr.Tpo .deps/cco_srOcrGocr.Po
gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/local/include -I/usr/local/cluscore -I/usr/include/libxml2 -I/usr/include/opencv -I../include -I../../kocr/src -DPREFIX="\"/usr/local\"" -g -DKOCR -MT cco_srOcrKocr.o -MD -MP -MF .deps/cco_srOcrKocr.Tpo -c -o cco_srOcrKocr.o cco_srOcrKocr.c
cco_srOcrKocr.c:30:18: error: kocr.h: そのようなファイルやディレクトリはありません
cco_srOcrKocr.c:31:18: error: subr.h: そのようなファイルやディレクトリはありません
cco_srOcrKocr.c:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
cco_srOcrKocr.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
cco_srOcrKocr.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
cco_srOcrKocr.c: In function ‘cco_srOcrKocr_initialize’:
cco_srOcrKocr.c:159: error: ‘db_num’ undeclared (first use in this function)
cco_srOcrKocr.c:159: error: (Each undeclared identifier is reported only once
cco_srOcrKocr.c:159: error: for each function it appears in.)
cco_srOcrKocr.c:162: error: ‘db_mbs’ undeclared (first use in this function)
cco_srOcrKocr.c:165: error: ‘db_ocrb’ undeclared (first use in this function)
cco_srOcrKocr.c: In function ‘cco_srOcrKocr_setOption’:
cco_srOcrKocr.c:196: error: ‘db_num’ undeclared (first use in this function)
cco_srOcrKocr.c:201: error: ‘db_mbs’ undeclared (first use in this function)
cco_srOcrKocr.c:206: error: ‘db_ocrb’ undeclared (first use in this function)
cco_srOcrKocr.c: In function ‘cco_srOcrKocr_getRecognizeString’:
cco_srOcrKocr.c:327: error: ‘feature_db’ undeclared (first use in this function)
cco_srOcrKocr.c:327: error: expected expression before ‘)’ token
make[1]: *** [cco_srOcrKocr.o] エラー 1
make[1]: ディレクトリ `/home/faxocr/src/sheet-reader/src' から出ます
make: *** [all-recursive] エラー 1
$
--
Tsutomu Miyazaki <
tsum...@gmail.com>