Hi! I have the same problem here when I include imageprocessor.h ‘p1_’ was not declared in this scope sudoku line 1005, external location: /usr/local/include/tesseract/tesscallback.h C/C++ Problem
Do somebody know what happen? Thanks! El viernes, 27 de mayo de 2016, 8:23:53 (UTC-3), Dennis Park escribió: > > > It seams not every version is working on my environment, 3.02.02(with > tessdata-3.04.00) is working good for me. > > > Dennis > > On Wednesday, May 25, 2016 at 2:05:54 PM UTC+8, Dennis Park wrote: >> >> hi, guys: >> >> configure is ok, when running make, I got the following error: >> any idea why? >> >> Thank in advance. >> Dennis >> >> >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >> -I.. -O2 -DNDEBUG -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct >> -I../viewer -I../classify -I../dict -I../wordrec -I../cutil -I../textord >> -I../opencl -I../neural_networks/runtime -I../cube >> -I/home/work/.jumbo/include -I/home/work/.jumbo/include/leptonica -g -O2 >> -MT cubeclassifier.lo -MD -MP -MF .deps/cubeclassifier.Tpo -c -o >> cubeclassifier.lo cubeclassifier.cpp >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >> -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify >> -I../dict -I../wordrec -I../cutil -I../textord -I../opencl >> -I../neural_networks/runtime -I../cube -I/home/work/.jumbo/include >> -I/home/work/.jumbo/include/leptonica -g -O2 -MT cubeclassifier.lo -MD -MP >> -MF .deps/cubeclassifier.Tpo -c cubeclassifier.cpp -fPIC -DPIC -o >> .libs/cubeclassifier.o >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >> -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify >> -I../dict -I../wordrec -I../cutil -I../textord -I../opencl >> -I../neural_networks/runtime -I../cube -I/home/work/.jumbo/include >> -I/home/work/.jumbo/include/leptonica -g -O2 -MT cubeclassifier.lo -MD -MP >> -MF .deps/cubeclassifier.Tpo -c cubeclassifier.cpp -o cubeclassifier.o >> >/dev/null 2>&1 >> mv -f .deps/cubeclassifier.Tpo .deps/cubeclassifier.Plo >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >> -I.. -O2 -DNDEBUG -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct >> -I../viewer -I../classify -I../dict -I../wordrec -I../cutil -I../textord >> -I../opencl -I../neural_networks/runtime -I../cube >> -I/home/work/.jumbo/include -I/home/work/.jumbo/include/leptonica -g -O2 >> -MT tesseract_cube_combiner.lo -MD -MP -MF >> .deps/tesseract_cube_combiner.Tpo -c -o tesseract_cube_combiner.lo >> tesseract_cube_combiner.cpp >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >> -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify >> -I../dict -I../wordrec -I../cutil -I../textord -I../opencl >> -I../neural_networks/runtime -I../cube -I/home/work/.jumbo/include >> -I/home/work/.jumbo/include/leptonica -g -O2 -MT tesseract_cube_combiner.lo >> -MD -MP -MF .deps/tesseract_cube_combiner.Tpo -c >> tesseract_cube_combiner.cpp -fPIC -DPIC -o .libs/tesseract_cube_combiner.o >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >> -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../viewer -I../classify >> -I../dict -I../wordrec -I../cutil -I../textord -I../opencl >> -I../neural_networks/runtime -I../cube -I/home/work/.jumbo/include >> -I/home/work/.jumbo/include/leptonica -g -O2 -MT tesseract_cube_combiner.lo >> -MD -MP -MF .deps/tesseract_cube_combiner.Tpo -c >> tesseract_cube_combiner.cpp -o tesseract_cube_combiner.o >/dev/null 2>&1 >> mv -f .deps/tesseract_cube_combiner.Tpo .deps/tesseract_cube_combiner.Plo >> /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 >> -L/home/work/.jumbo/lib -o libtesseract_main.la adaptions.lo >> applybox.lo control.lo docqual.lo equationdetect.lo fixspace.lo fixxht.lo >> ltrresultiterator.lo osdetect.lo output.lo pageiterator.lo pagesegmain.lo >> pagewalk.lo par_control.lo paragraphs.lo paramsd.lo pgedit.lo >> recogtraining.lo reject.lo resultiterator.lo superscript.lo tessbox.lo >> tessedit.lo tesseractclass.lo tessvars.lo tfacepp.lo thresholder.lo >> werdit.lo cube_control.lo cube_reco_context.lo cubeclassifier.lo >> tesseract_cube_combiner.lo -llept -lpthread >> libtool: link: ar cru .libs/libtesseract_main.a .libs/adaptions.o >> .libs/applybox.o .libs/control.o .libs/docqual.o .libs/equationdetect.o >> .libs/fixspace.o .libs/fixxht.o .libs/ltrresultiterator.o .libs/osdetect.o >> .libs/output.o .libs/pageiterator.o .libs/pagesegmain.o .libs/pagewalk.o >> .libs/par_control.o .libs/paragraphs.o .libs/paramsd.o .libs/pgedit.o >> .libs/recogtraining.o .libs/reject.o .libs/resultiterator.o >> .libs/superscript.o .libs/tessbox.o .libs/tessedit.o .libs/tesseractclass.o >> .libs/tessvars.o .libs/tfacepp.o .libs/thresholder.o .libs/werdit.o >> .libs/cube_control.o .libs/cube_reco_context.o .libs/cubeclassifier.o >> .libs/tesseract_cube_combiner.o >> libtool: link: ranlib .libs/libtesseract_main.a >> libtool: link: ( cd ".libs" && rm -f "libtesseract_main.la" && ln -s "../ >> libtesseract_main.la" "libtesseract_main.la" ) >> make[2]: Leaving directory >> `/home/work/hongji/soft/py/tesseract/tesseract-3.04/ccmain' >> Making all in api >> make[2]: Entering directory >> `/home/work/hongji/soft/py/tesseract/tesseract-3.04/api' >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >> -I.. -O2 -DNDEBUG -DLOCALEDIR=\"/home/work/.jumbo/share/locale\" >> -DUSE_STD_NAMESPACE -I../ccutil -I../ccstruct -I../cube -I../viewer >> -I../textord -I../dict -I../classify -I../ccmain -I../wordrec -I../cutil >> -I../opencl -I/home/work/.jumbo/include >> -I/home/work/.jumbo/include/leptonica -g -O2 -MT >> libtesseract_api_la-baseapi.lo -MD -MP -MF >> .deps/libtesseract_api_la-baseapi.Tpo -c -o libtesseract_api_la-baseapi.lo >> `test -f 'baseapi.cpp' || echo './'`baseapi.cpp >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >> -DLOCALEDIR=\"/home/work/.jumbo/share/locale\" -DUSE_STD_NAMESPACE >> -I../ccutil -I../ccstruct -I../cube -I../viewer -I../textord -I../dict >> -I../classify -I../ccmain -I../wordrec -I../cutil -I../opencl >> -I/home/work/.jumbo/include -I/home/work/.jumbo/include/leptonica -g -O2 >> -MT libtesseract_api_la-baseapi.lo -MD -MP -MF >> .deps/libtesseract_api_la-baseapi.Tpo -c baseapi.cpp -fPIC -DPIC -o >> .libs/libtesseract_api_la-baseapi.o >> baseapi.cpp: In member function `char* >> tesseract::TessBaseAPI::GetHOCRText(int)': >> baseapi.cpp:1534: warning: passing `float' for converting 2 of `void >> STRING::add_str_int(const char*, int)' >> ../ccutil/tesscallback.h: In function `typename >> _TessMemberResultCallback_6_0< false, R, T1, P1, P2, P3, P4, P5, P6>::base* >> NewPermanentTessCallback(T1*, R (T2::*)(P1, P2, P3, P4, P5, P6), typename >> Identity<P1>::type, typename Identity<P2>::type, typename >> Identity<P3>::type, typename Identity<P4>::type, typename >> Identity<P5>::type, typename Identity<P6>::type) [with T1 = >> tesseract::PageIterator, T2 = const tesseract::PageIterator, R = bool, P1 = >> tesseract::PageIteratorLevel, P2 = int, P3 = int*, P4 = int*, P5 = int*, P6 >> = int*]': >> baseapi.cpp:662: instantiated from here >> ../ccutil/tesscallback.h:1585: error: no matching function for call to >> `_TessMemberResultCallback_6_0< false, bool, tesseract::PageIterator, >> tesseract::PageIteratorLevel, int, int*, int*, int*, >> int*>::_TessMemberResultCallback_6_0(tesseract::PageIterator*&, bool >> (tesseract::PageIterator::*&)(tesseract::PageIteratorLevel, int, int*, >> int*, int*, int*) const, tesseract::PageIteratorLevel&, int&, int*&, int*&, >> int*&, int*&)' >> ../ccutil/tesscallback.h:1506: note: candidates are: >> _TessMemberResultCallback_6_0< false, bool, tesseract::PageIterator, >> tesseract::PageIteratorLevel, int, int*, int*, int*, >> int*>::_TessMemberResultCallback_6_0(const _TessMemberResultCallback_6_0< >> false, bool, tesseract::PageIterator, tesseract::PageIteratorLevel, int, >> int*, int*, int*, int*>&) >> ../ccutil/tesscallback.h:1523: note: >> _TessMemberResultCallback_6_0<del, R, T, P1, P2, P3, P4, P5, >> P6>::_TessMemberResultCallback_6_0(T*, R (T::*)(P1, P2, P3, P4, P5, P6), >> P1, P2, P3, P4, P5, P6) [with bool del = false, R = bool, T = >> tesseract::PageIterator, P1 = tesseract::PageIteratorLevel, P2 = int, P3 = >> int*, P4 = int*, P5 = int*, P6 = int*] >> ../ccutil/tesscallback.h: In function `typename >> _TessMemberResultCallback_5_0< false, R, T1, P1, P2, P3, P4, P5>::base* >> NewPermanentTessCallback(T1*, R (T2::*)(P1, P2, P3, P4, P5), typename >> Identity<P1>::type, typename Identity<P2>::type, typename >> Identity<P3>::type, typename Identity<P4>::type, typename >> Identity<P5>::type) [with T1 = tesseract::PageIterator, T2 = const >> tesseract::PageIterator, R = bool, P1 = tesseract::PageIteratorLevel, P2 = >> int*, P3 = int*, P4 = int*, P5 = int*]': >> baseapi.cpp:668: instantiated from here >> ../ccutil/tesscallback.h:1343: error: no matching function for call to >> `_TessMemberResultCallback_5_0< false, bool, tesseract::PageIterator, >> tesseract::PageIteratorLevel, int*, int*, int*, >> int*>::_TessMemberResultCallback_5_0(tesseract::PageIterator*&, bool >> (tesseract::PageIterator::*&)(tesseract::PageIteratorLevel, int*, int*, >> int*, int*) const, tesseract::PageIteratorLevel&, int*&, int*&, int*&, >> int*&)' >> ../ccutil/tesscallback.h:1266: note: candidates are: >> _TessMemberResultCallback_5_0< false, bool, tesseract::PageIterator, >> tesseract::PageIteratorLevel, int*, int*, int*, >> int*>::_TessMemberResultCallback_5_0(const _TessMemberResultCallback_5_0< >> false, bool, tesseract::PageIterator, tesseract::PageIteratorLevel, int*, >> int*, int*, int*>&) >> ../ccutil/tesscallback.h:1282: note: >> _TessMemberResultCallback_5_0<del, R, T, P1, P2, P3, P4, >> P5>::_TessMemberResultCallback_5_0(T*, R (T::*)(P1, P2, P3, P4, P5), P1, >> P2, P3, P4, P5) [with bool del = false, R = bool, T = >> tesseract::PageIterator, P1 = tesseract::PageIteratorLevel, P2 = int*, P3 = >> int*, P4 = int*, P5 = int*] >> make[2]: *** [libtesseract_api_la-baseapi.lo] Error 1 >> make[2]: Leaving directory >> `/home/work/hongji/soft/py/tesseract/tesseract-3.04/api' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/home/work/hongji/soft/py/tesseract/tesseract-3.04' >> make: *** [all] Error 2 >> >> >> -- 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 [email protected]. To post to this group, send email to [email protected]. 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/2ac61bd2-11da-4017-855e-5bb8a6b4559b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

