Closed GoogleCodeExporter closed 9 years ago
Solved! i added this libraries to LIBS var in Makefile:
"LIBS = -llept -lsocket -lnsl -lrt -lxnet"
and now it compiles and builds on Solaris 10 SPARC
Original comment by jolivanp...@gmail.com
on 22 Nov 2011 at 9:03
thanks for info building on Solaris 10 SPARC.
Original comment by zde...@gmail.com
on 22 Nov 2011 at 10:37
Original comment by zde...@gmail.com
on 6 Mar 2012 at 8:27
With tesseract-ocr-3.02.02 on Solaris 10 (Generic_147441-01 i86pc i386 i86pc)
libtool: link: ranlib .libs/libtesseract.a
libtool: link: rm -fr .libs/libtesseract.lax
libtool: link: ( cd ".libs" && rm -f "libtesseract.la" && ln -s
"../libtesseract.la" "libtesseract.la" )
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
mv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o tesseract
tesseract-tesseractmain.o libtesseract.la -llept -lrt
libtool: link: g++ -g -O2 -o .libs/tesseract tesseract-tesseractmain.o
./.libs/libtesseract.so -L/usr/sfw/lib /usr/sfw/lib/libstdc++.so -lgcc_s
/usr/local/lib/liblept.so -lm -lz -lpng -ljpeg -ltiff -lrt -Wl,-R
-Wl,/usr/local/lib -Wl,-R -Wl,/usr/sfw/lib
ld: warning: file /usr/sfw/lib/libstdc++.so: attempted multiple inclusion of
file
Undefined first referenced
symbol in file
recv ./.libs/libtesseract.so
send ./.libs/libtesseract.so
__xnet_connect ./.libs/libtesseract.so
__xnet_socket ./.libs/libtesseract.so
gethostbyname ./.libs/libtesseract.so
ld: fatal: symbol referencing errors. No output written to .libs/tesseract
collect2: ld returned 1 exit status
gmake[2]: *** [tesseract] Error 1
gmake[2]: Leaving directory `/root/TESS/tesseract-ocr/api'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/TESS/tesseract-ocr'
gmake: *** [all] Error 2
I tried to change "LIBS = -llept -lsocket -lnsl -lrt -lxnet" but still got the
same issue.
Any idea?
Original comment by arnaud.m...@gmail.com
on 17 May 2013 at 1:06
fixed in r895
Original comment by zde...@gmail.com
on 20 Oct 2013 at 8:59
Issue 915 has been merged into this issue.
Original comment by zde...@gmail.com
on 20 Oct 2013 at 9:00
The link to r895 is non operational and it still does not work automatically on
SmartOS with the exact same errors as mentioned above without manually editing
the Makefile.
Original comment by mgt...@gmail.com
on 11 Oct 2014 at 10:46
Original issue reported on code.google.com by
jolivanp...@gmail.com
on 21 Nov 2011 at 5:58