I just building tesseract4.0 in CentOS5.5 and with solved a lot of problem ....final i run ./configure and have the same problem like you ...
checking for off_t... yes checking for mbstate_t... yes ./configure: line 17743: syntax error near unexpected token `LEPTONICA,' ./configure: line 17743: `PKG_CHECK_MODULES(LEPTONICA, lept >= 1.74, have_lept=true, have_lept=false)' and i check the things like you.... [root@marineap tesseract-ocr]# pkg-config --cflags --libs lept -I/usr/local/include/leptonica -L/usr/local/lib -llept [root@marineap build]# echo $PKG_CONFIG_PATH /usr/local/lib/pkgconfig::/my/additional/config:/usr/local/lib/pkgconfig/ it's all contain lept could you tell me ..Tell me how you installed it in detail... i have spent a lot of time in it...it make me feel a liitle bad... 在 2017年5月3日星期三 UTC+8上午5:03:34,Jean-Christophe Penalva写道: > > Finally, i use the cmake. > > mkdir build > cd build > ccmake .. > make > > And no more problems ! > > > Le mercredi 26 avril 2017 16:57:46 UTC+2, Jean-Christophe Penalva a écrit : >> >> i've already the PKG_CONFIG_PATH ok !! >> >> env | grep PKG >> PKG_CONFIG_PATH=/...../leptonica/1.74.1/lib/pkgconfig >> >> and pkg-config is running well : >> pkg-config --cflags --libs lept >> -I/....../leptonica/1.74.1/include/leptonica >> -L/...../leptonica/1.74.1/lib -llept >> >> Le mercredi 26 avril 2017 15:26:39 UTC+2, zdenop a écrit : >>> >>> IMHO you need to set PKG_CONFIG_PATH to your custom location of >>> leptonica, so pkg-config is able to find lept.pc. >>> >>> Zdenko >>> >>> On Tue, Apr 25, 2017 at 10:59 PM, Jean-Christophe Penalva < >>> [email protected]> wrote: >>> >>>> and in the lib directory of the installed libleptonica, there are >>>> these files : >>>> -rw-r--r-- 1 15994844 Apr 25 10:03 liblept.a >>>> -rwxr-xr-x 1 999 Apr 25 10:03 liblept.la >>>> lrwxrwxrwx 1 16 Apr 25 10:03 liblept.so -> liblept.so.5.0.1 >>>> lrwxrwxrwx 1 16 Apr 25 10:03 liblept.so.5 -> liblept.so.5.0.1 >>>> -rwxr-xr-x 1 9533600 Apr 25 10:03 liblept.so.5.0.1 >>>> drwxrwxr-x 2 4096 Apr 25 10:03 pkgconfig >>>> >>>> Le mardi 25 avril 2017 22:51:04 UTC+2, Jean-Christophe Penalva a écrit : >>>>> >>>>> pkgconfig-0.23-9.1.el6.x86_64 >>>>> >>>>> Le mardi 25 avril 2017 19:16:55 UTC+2, zdenop a écrit : >>>>>> >>>>>> It seems like problem with pkg-config. Do you have it installed? >>>>>> >>>>>> Zdenko >>>>>> >>>>>> On Tue, Apr 25, 2017 at 2:16 PM, Jean-Christophe Penalva < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> i've read the doc, but this does'nt work for me. >>>>>>> >>>>>>> after the autogen.sh i have the error on leptonica. >>>>>>> >>>>>>> Any idea ? >>>>>>> >>>>>>> Le mardi 25 avril 2017 13:56:29 UTC+2, shree a écrit : >>>>>>>> >>>>>>>> I built both from source yesterday. >>>>>>>> >>>>>>>> Try the following for building tesseract >>>>>>>> >>>>>>>> >>>>>>>> /autogen.sh >>>>>>>> ./configure >>>>>>>> LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make >>>>>>>> sudo make install >>>>>>>> sudo ldconfig >>>>>>>> >>>>>>>> As given in compiling page on wiki >>>>>>>> >>>>>>>> - excuse the brevity, sent from mobile >>>>>>>> >>>>>>>> On 25-Apr-2017 2:14 PM, "Jean-Christophe Penalva" < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> i try to compile the new version of Tesseract (v4.0x) on a >>>>>>>>> redhat from source. I've already compile and install the >>>>>>>>> libleptonica, and >>>>>>>>> now i've a pb during the configure stage of tesseract : >>>>>>>>> >>>>>>>>> export CFLAGS=-I...../leptonica/1.74.1/include >>>>>>>>> export CPPFLAGS=-I......../leptonica/1.74.1/include >>>>>>>>> export LDFLAGS=-L......./leptonica/1.74.1/lib >>>>>>>>> >>>>>>>>> ./configure --prefix=......./tesseract/4.0 >>>>>>>>> --with-extra-includes=......./leptonica/1.74.1/include >>>>>>>>> --with-extra-libraries=......../leptonica/1.74.1/lib >>>>>>>>> ... >>>>>>>>> .... >>>>>>>>> checking for long long int... yes >>>>>>>>> checking for off_t... yes >>>>>>>>> checking for mbstate_t... yes >>>>>>>>> ./configure: line 16347: syntax error near unexpected token >>>>>>>>> `LEPTONICA,' >>>>>>>>> ./configure: line 16347: `PKG_CHECK_MODULES(LEPTONICA, lept >= >>>>>>>>> 1.74, have_lept=true, have_lept=false)' >>>>>>>>> >>>>>>>>> I search for a this message ... but nothing. Is it possible to >>>>>>>>> install tesseract from sources (and from sources of leptonica too) ? >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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/041d7e95-7af2-4faa-80c7-2844c587b6ed%40googlegroups.com >>>>>>>>> >>>>>>>>> <https://groups.google.com/d/msgid/tesseract-ocr/041d7e95-7af2-4faa-80c7-2844c587b6ed%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>> . >>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>> >>>>>>>> -- >>>>>>> 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/1b4084a1-1590-46ae-ad5f-53d1c6e7c30c%40googlegroups.com >>>>>>> >>>>>>> <https://groups.google.com/d/msgid/tesseract-ocr/1b4084a1-1590-46ae-ad5f-53d1c6e7c30c%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> >>>>>> -- >>>> 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/f17595f0-e20f-4a94-8315-30702fb4edb5%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/tesseract-ocr/f17595f0-e20f-4a94-8315-30702fb4edb5%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- 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/704c82ba-3136-4387-a435-64b73280acca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

