kcobra / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Configure fails seems not taking ldflags and extra libs path correctly #1399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.install leptonica in path other then /usr/local/ /usr
2.use similar command, according to place leptonica already installed
3../configure --prefix=/home/anshul/usr 
--with-extra-libraries=/home/anshul/usr/lib 
--with-extra-includes=/home/anshul/usr/include LDFLAGS=-L/home/anshul/usr/lib

What is the expected output? What do you see instead?
if path given are correct, configure should not fail 

What version of the product are you using? On what operating system?
openSuse, linux 3.17.rc

Please provide any additional information below.
here is config.log required part 
1010 configure:16475: result: yes
1011 configure:16492: checking for leptonica
1012 configure:16511: result: yes
1013 configure:16513: checking for pixCreate in -llept
1014 configure:16538: g++ -o conftest   -I/home/anshul/usr/include//leptonica 
-L/home/anshul/usr/lib -L/home/anshul/usr/lib conftest.cpp -llept  -lpthread  
>&5
1015 configure:16538: $? = 0
1016 configure:16547: result: yes
1017 configure:16564: checking leptonica version >= 1.70
1018 configure:16581: g++ -E  -I/home/anshul/usr/include//leptonica conftest.cpp
1019 conftest.cpp:39:34: fatal error: leptonica/allheaders.h: No such file or 
directory
1020 compilation terminated.

if you see while compiling picreate it took the correct LDFLAGS lib path but 
while checking version it did not.
I do have leptonica 1.71

Original issue reported on code.google.com by er.anshu...@gmail.com on 6 Jan 2015 at 5:49

GoogleCodeExporter commented 9 years ago
It seem you did not read docs:
https://code.google.com/p/tesseract-ocr/wiki/FAQ#leptonica_library_missing
https://code.google.com/p/tesseract-ocr/wiki/Compiling#Install_elsewhere_/_witho
ut_root

Original comment by zde...@gmail.com on 20 Feb 2015 at 9:44