Opencv:opencv transplanted to Arm-linux

Source: Internet
Author: User

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> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.