allheaders.h accepted by the compiler, rejected by the preprocessor!

4 views
Skip to first unread message

Michael Moore

unread,
Jun 26, 2009, 8:14:24 AM6/26/09
to ocr...@googlegroups.com
I'm trying to build OCRopus, I checkedout the code form mercurial last night.

it comes down to this:

./configure --prefix=/home/stuporgl/www/bookscanned/prog/
--with-tesseract=/home/stuporgl/www/bookscanned/prog/
--with-iulib=/home/stuporgl/www/bookscanned/prog/
leptheaders=/home/stuporgl/www/bookscanned/prog/include/liblept/
...
checking /home/stuporgl/www/bookscanned/prog/include/liblept//allheaders.h
usability... yes
checking /home/stuporgl/www/bookscanned/prog/include/liblept//allheaders.h
presence... no
configure: WARNING:
/home/stuporgl/www/bookscanned/prog/include/liblept//allheaders.h:
accepted by the compiler, rejected by the preprocessor!
configure: WARNING:
/home/stuporgl/www/bookscanned/prog/include/liblept//allheaders.h:
proceeding with the compiler's result
checking for /home/stuporgl/www/bookscanned/prog/include/liblept//allheaders.h...
yes
checking for pixCreate in -llept... no
configure: error: leptonica not found! Choose --without-leptonica if
you don't want to use it.


How can I find out why the preprocessor rejected it? Is there a known
workaround?

Thank you,
--
Michael Moore
-------------------------
Share your families' genealogy and family history books. It's easy and
free : http://bookscanned.com

Thomas Breuel

unread,
Jun 28, 2009, 3:51:24 PM6/28/09
to ocr...@googlegroups.com
I'm not sure what the problem is (or what platform you're building
on). The autoconf files may need some tender care, in particular if
you're trying to use non-standard paths. Please contribute a fix if
you come up with one.

We're primarily developing with scons on Ubuntu 9.04, so if you're on
Ubuntu 9.04, that's your best bet.

Tom
Reply all
Reply to author
Forward
0 new messages