Installing opencv2.0
Decompression opencv-2.0.0.tar.bz2
Tar xvf opencv-2.0.0.tar.bz2
Configuration
./configure--host=arm-linux \
--without-carbon \
--without-quicktime \
--without-1394libs \
--without-ffmpeg \
--without-python \
--without-swig \
--WITHOUT-GTK \
--enable-static \
--enable-shared \
--disable-apps \
--WITHOUT-GTK \
--prefix= $PWD/output/a31 \
--libdir= $PWD/output/a31/lib \
--includedir= $PWD/output/a31/include
error: ' ptrdiff_t ' does not name a type workaround:Jose Luis Blanco-May 9, 2011 Morning 2:13:03Patch_to_fix_opencv_2.1_624950.diff(454 B)
I confirm this bug and that it's serious since it prevents otherpackages to build in SID with the newest g++ 4.6.However, It can very easily fixed by patching one single line, Asshown in the attached patch (also copied below): =============== ==============DIFF-W-RUPN OPENCV-2.1.0//INCLUDE/OPENCV/CXCORE.HPPOPENCV-2.1.0//INCLUDE/OPENCV/CXCORE.HPP--- opencv-2.1.0//include/opencv/cxcore.hpp2010-04-06 03:24:40.000000000 +0200+++ opencv-2.1.0//include/opencv/ cxcore.hpp2011-05-08 19:56:53.759113108 +0200@@ -66,6 +66,7 @@ namespace CV {using Std::vector; using std::string;+using std::p trdiff_t; Template<typename _tp> class Cv_exports size_; Template<typename _tp> class Cv_exports point_;============================please, could a maintainer patch this Package and issue a new rebuild?? Btw:after fixing this bug OpenCV seems do completely build due toa similar bug in the headers of libavcodec, but Perh APS they ' vealready patched it too in SID. Cheers,jose luis--Show Footer
Error: highgui/loadsave.cpp:333:28:error: ' unlink ' is not declared in this scope workaround:
vi src/highgui/loadsave.cpp< BR style= "Word-wrap:break-word" > add:
#include <unistd.h>