|
版主、各位大侠:opencv-1.1.0在fdeora 8平台的X-86环境已通过,能正常使用,但小弟在交叉编译时却不能通过,错误如下(交叉编译器:arm-linux-gcc-2.95.3版本,工作正常。):
(1) ./configure --host=arm-linux --without-gtk --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=arm-linux-g++ CPPFLAGS=-I/usr/include 能够通过。
(2)make 出现错误退出:
pe -O3 -fomit-frame-pointer -c cvkdtree.cpp -Wp,-MD,.deps/cvkdtree.TPlo -o cvkdtree.o
In file included from cvkdtree.cpp:47:
_cvkdtree.hpp:51: limits: ?????????
In file included from cvkdtree.cpp:47:
_cvkdtree.hpp: In method `int CvKDTree<__valuetype,__deref>::dimension_of_highest_variance(__instype *, __instype *, __valuector)':
_cvkdtree.hpp:88: parse error before `>'
cvkdtree.cpp: In function `struct CvFeatureTree * cvCreateFeatureTree(CvMat *)':
_cvkdtree.hpp:88: warning: `double maxvar' might be used uninitialized in this function
_cvkdtree.hpp:88: warning: `double maxvar' might be used uninitialized in this function
cvkdtree.cpp: In method `int CvKDTree<int,CvFeatureTree::deref<float,5> >::insert<int, CvKDTree<int,CvFeatureTree::deref<float,5> >::identity_ctor>(int *, int *, CvKDTree<int,CvFeatureTree::deref<float,5> >::identity_ctor)':
_cvkdtree.hpp:88: warning: `double maxvar' might be used uninitialized in this function
cvkdtree.cpp: In method `int CvKDTree<int,CvFeatureTree::deref<double,6> >::insert<int, CvKDTree<int,CvFeatureTree::deref<double,6> >::identity_ctor>(int *, int *, CvKDTree<int,CvFeatureTree::deref<double,6> >::identity_ctor)':
_cvkdtree.hpp:88: warning: `double maxvar' might be used uninitialized in this function
make[3]: *** [cvkdtree.lo] 错误 1
make[3]: Leaving directory `/root/E-OpenCV/opencv-1.1.0/cv/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/E-OpenCV/opencv-1.1.0/cv'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/E-OpenCV/opencv-1.1.0'
make: *** [all] 错误 2
[root@localhost opencv-1.1.0]#
各位有没有遇到此问题,哪位给看看,感谢! |
|