2011-03-29 02:30:03 openCV on uClinux
Sahil Sapre (UNITED STATES)
Message: 99398
I'm trying to cross-compile an OpenCV code for Blackfin uClinux (2009 distribution). I'm compiling it using the following command:
bfin-uclinux-g++ -Wall -Wl,-elf2flt -o backsub backsub.c -I./ -L./ -pthread -lcv -lcxcore
I've put the libraries and header files in the current folder. I get the following error:
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `icvClose(CvFileStorage*)':
cxcore/cxpersistence.cpp:(.text+0xbc2): undefined reference to `_gzclose'
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `icvEof(CvFileStorage*)':
cxcore/cxpersistence.cpp:(.text+0x40b2): undefined reference to `_gzeof'
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `icvGets(CvFileStorage*, char*, int)':
cxcore/cxpersistence.cpp:(.text+0x42aa): undefined reference to `_gzgets'
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `icvPuts(CvFileStorage*, char const*)':
cxcore/cxpersistence.cpp:(.text+0x47b0): undefined reference to `_gzputs'
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `icvRewind(CvFileStorage*)':
cxcore/cxpersistence.cpp:(.text+0x191d2): undefined reference to `_gzrewind'
.//libcxcore.a(lib_cxcore_la-cxpersistence.o): In function `_cvOpenFileStorage':
cxcore/cxpersistence.cpp:(.text+0x19906): undefined reference to `_gzopen'
collect2: ld returned 1 exit status
When I add -lz to after -lcxcore, it says "cannot find -lz". Does anyone know what's going wrong?
Thanks!
QuoteReplyEditDelete
2011-03-29 02:41:49 Re: openCV on uClinux
Mike Frysinger (UNITED STATES)
Message: 99402
you need to provide zlib
QuoteReplyEditDelete
2011-05-18 01:52:20 Re: openCV on uClinux
Faclon Seventy4 (INDIA)
Message: 100709
Hi Sahil,
Any success with OpenCV compilation? Which version of OpenCV did you try ?
cheers,
~F