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-7af
>>>>>> 2-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/ms
>>>> gid/tesseract-ocr/1b4084a1-1590-46ae-ad5f-53d1c6e7c30c%40goo
>>>> glegroups.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/CAJbzG8yJN5A3V226ow2nEg2BbnDyFE38X%2BceG_To5KTRkAVS7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to