I tried these steps but unfortunately when I run the commands as
follows:
./configure --without-fst --without-leptonica --with-tesseract="/opt/
local" # CXXFLAGS="-fPIC -O2"
make
I get...
Undefined symbols:
"_pixExpandBinaryPower2", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixCreate", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixGetData", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixGetDimensions", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixGetWpl", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixMorphSequence", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixSeedfillBinary", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixThresholdToBinary", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
"_pixDestroy", referenced from:
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ocropus::TextImageSegByLeptonica::getLeptNonTextMask
(colib::narray<unsigned char>&, colib::narray<unsigned char>&)in
libocropus.a(ocr-text-image-seg-leptonica.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [ocroscript] Error 1
make: *** [all-recursive] Error 1
Any ideas on how to get this resolved and finally get a working
install of ocropus on my Mac?
Thanks,
Armen
On Feb 7, 3:51 pm, cyberbryce <[email protected]> wrote:
> I'm no expert on compiling and installing 'NIX software for OS X, but
> I was able to compile on Mac OS X 10.5.6 by making some modifications.
> This may be helpful to others trying to do the same. Further, some
> more informed individuals may be able to translate this into
> appropriate instructions or corrections for a Mac OS install:
>
> I used Fink / Mac Ports to install libpng, libtiff, and then iulib and
> tesserect, but not FST or Leptonica. It is not clear whether I could
> have instead linked to system libraries already present.
>
> I then ran configure for ocropus 0.3 as follows:
> CPPFLAGS='-I/sw/include -I/opt/local/include' LDFLAGS='-L/sw/lib -L/
> opt/local/lib' ./configure --without-fst --without-leptonica
>
> I modified the Makefile in ext/tolua++ so that the ar tool would be
> called without the "f" option which does not exist in ar on OS X, so
> instead of
> $(AR) crf $@ $^
> the ext/tolua++/Makefile contained
> $(AR) cr $@ $^
>
> I modified ext/ocroscript/Makefile so that g++ does not try to pass
> the option -E to the linker, and used the option "-all_load", so
> instead of:
> AM_LDFLAGS = -Wl,-E
> the ext/ocroscript/Makefile contained
> AM_LDFLAGS = -Wl,-all_load
>
> The software produces expected output on the suggested test given by
> configure,
> ocroscript recognize data/pages/alice_1.png
>
> I'll amend this if I conclude the installation was not successful
> after inputtting some of my own files.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" 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/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---