Not sure what the problem was, but it was still giving me an error message 
after installing 12.04 and doing sudo apt-get install tesseract-ocr (and 
following the steps in previous posts). This time, the error was that it 
couldn't find the file liblept.so. Anyways, I did the installation steps 
with leptonlib-1.67 and then doing ./configure with tesseract-ocr-read-only 
(3.02) worked. However, when I do make, it gives the following error 
message:

make[2]: Entering directory 
`/home/www-data/tesseract/tesseract-ocr-read-only/api'
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
../api/tesseractmain.cpp: In function ‘int main(int, char**)’:
../api/tesseractmain.cpp:61:39: error: ‘getLeptonicaVersion’ was not 
declared in this scope
../api/tesseractmain.cpp:63:26: error: ‘lept_free’ was not declared in this 
scope
make[2]: *** [tesseract-tesseractmain.o] Error 1
make[2]: Leaving directory 
`/home/www-data/tesseract/tesseract-ocr-read-only/api'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/www-data/tesseract/tesseract-ocr-read-only'
make: *** [all] Error 2

Thanks for all the help! I'd really like to get this working. Somehow, I 
think if I can remove all tesseract/leptonica files from my computer and 
start again from scratch, it would work fine.


On Saturday, September 22, 2012 11:51:20 AM UTC-7, zdenop wrote:
>
> BTW: I realized that you just run './configure' for leptonica, so 
> leptonica should be installed (by default) with /usr/local/ prefix. But 
> config.log shows that there is problem with /usr/lib/liblept.so. This 
> indicates you have two installation of leptonica library. If I am right, 
> that please remove (uninstall) version located in /usr/lib because it 
> produce errors. (than run 'sudo ldconfig', and try to configure 
> tesseract...)
>
> -- 
> Zdenko
>
> On Sat, Sep 22, 2012 at 12:05 PM, zdenko podobny 
> <[email protected]<javascript:>
> > wrote:
>
>> Have a look at config.log and search for leptonica - you will see there 
>> the error messages like this:
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined 
>> reference to `TIFFWriteScanline'
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined 
>> reference to `png_create_read_struct'
>> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/liblept.so: undefined 
>> reference to `jpeg_destroy'
>>
>> These are function in jpeg, tiff, png libraries. Can you check where are 
>> installed these (shared) libraries?
>>
>> --
>> Zdenko
>>
>> On Sat, Sep 22, 2012 at 10:31 AM, Osman Masood 
>> <[email protected]<javascript:>
>> > wrote:
>>
>>> Yes, I tried running sudo ldconfig after installing leptonica, and set 
>>> the LIBLEPT_HEADERSDIR environment variable. I also did 'make clean' in the 
>>> Leptonica directory and installed it again. However, it's still giving me 
>>> the same error. (I also tried using the latest version of Tesseract on 
>>> trunk, 3.02, but same results.)
>>>
>>> What's weird is that I followed pretty much the same steps and installed 
>>> Tesseract 3.02 successfully on OS X 10.8 (on a different machine).
>>>
>>> I actually had tried to install previous versions of Tesseract (3.00 and 
>>> 3.01) and Leptonica (1.67) on Ubuntu before this - would that make a 
>>> difference?
>>>
>>> My config.log is attached.
>>>
>>> Thanks for the help!
>>>
>>> On Saturday, September 22, 2012 12:27:17 AM UTC-7, zdenop wrote:
>>>
>>>> Hi,
>>>>
>>>> first of all: there is leptonica 1.69 and tesseract-ocr 3.02 
>>>> in in Ubuntu 12.4 LTS Precise Pangolin. So maybe you can rebuild packages 
>>>> from there. 
>>>>
>>>> Next:
>>>>
>>>>    - Did you try to run "sudo ldconfig" [1] after installing leptonica? 
>>>>    - If it does not work, than try to set LIBLEPT_HEADERSDIR (see 
>>>>    ./configure --help) e.g. 
>>>> LIBLEPT_**HEADERSDIR=/usr/local/include/**leptonica 
>>>>    ./configure
>>>>
>>>>
>>>> If it does not help, send config.log (from tesseract-ocr)
>>>>
>>>> [1] 
>>>> http://code.google.com/p/**tesseract-ocr/wiki/ReadMe#**Linux<http://code.google.com/p/tesseract-ocr/wiki/ReadMe#Linux>
>>>>
>>>> -- 
>>>> Zdenko
>>>>  On Fri, Sep 21, 2012 at 11:08 PM, Osman Masood <[email protected]>wrote:
>>>>
>>>>>  Hello everyone,
>>>>> I'm trying to install leptonica 1.69 and Tesseract v3.01 using the 
>>>>> exact instructions found in their respective README files. Leptonica 
>>>>> installs without a problem; however, whenever I try to run ./configure 
>>>>> (even after running ./autogen.sh) it says: *configure: error: 
>>>>> leptonica library missing*. 
>>>>> These are the commands I'm using to install each, which are exactly in 
>>>>> accordance with the README/INSTALL files:
>>>>>
>>>>> For leptonica 1.69:
>>>>> ./configure
>>>>> make
>>>>> sudo make install
>>>>>
>>>>> For Tesseract 3.01:
>>>>> ./autogen.sh
>>>>> ./configure
>>>>> * > configure: error: leptonica library missing*.
>>>>>
>>>>> I'm really confused, can one of you gurus help me out?
>>>>> Much thanks!
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "tesseract-ocr" group.
>>>>> To post to this group, send email to [email protected]
>>>>>
>>>>> To unsubscribe from this group, send email to
>>>>> tesseract-oc...@**googlegroups.com
>>>>>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/**group/tesseract-ocr?hl=en<http://groups.google.com/group/tesseract-ocr?hl=en>
>>>>>
>>>>
>>>>
>>>> 

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to