2010-11-20 19:24:30 opencv library for blackfin
shuja ahmed (UNITED KINGDOM)
Message: 96064
I am trying to cross compile opencv library with uclinux for blackfin processor.
I am using the opencv source code "opencv-1.1pre1.tar.gz". I used the following commands from the source directory of opencv
> ./configure --host=bfin-uclinux --without-octave --without-gtk --without-v4l --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps --disable-openmp LDFLAGS=-mfast-fp \CC=bfin-uclinux-gcc-4.1.2 \CXX=bfin-uclinux-g++-4.1.2 \CPPFLAGS=-I/usr/include
> make
Until make, everything goes well, But after "make install", i get the following error
> sudo make install.
Making install in cxcore
make[1]: Entering directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore'
Making install in src
make[2]: Entering directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore/src'
make[3]: Entering directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../../libtool --mode=install /usr/bin/install -c 'libcxcore.la' '/usr/local/lib/libcxcore.la'
/usr/bin/install -c .libs/libcxcore.lai /usr/local/lib/libcxcore.la
/usr/bin/install -c .libs/libcxcore.a /usr/local/lib/libcxcore.a
chmod 644 /usr/local/lib/libcxcore.a
bfin-uclinux-ranlib /usr/local/lib/libcxcore.a
../../libtool: line 6654: bfin-uclinux-ranlib: command not found
make[3]: *** [install-libLTLIBRARIES] Error 127
make[3]: Leaving directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/shuja/Desktop/Phd/H/OpenCVAndUclinux/opencv-1.1.0/cxcore'
make: *** [install-recursive] Error 1
If any one already worked with opencv, please help
QuoteReplyEditDelete
2010-11-21 16:31:13 Re: opencv library for blackfin
Mike Frysinger (UNITED STATES)
Message: 96069
you do not do anything as root. it makes no sense to install cross-compiled packages into /usr/local/.
please integrate your lib into the uclinux-dist like normal and let it manage the install to the rootfs.
QuoteReplyEditDelete