小弟在ubuntu 11.10下安装openCV,自己编译的那种,结果不管是是那个版本,都提示以下内容,请各位相助
In file included from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:50:0,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/src/precomp.hpp:55,
from /home/edeas/new/modules/imgproc/opencv_imgproc_pch_dephelp.cxx:1:
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:354:13: 错误: ‘ptrdiff_t’不是一个类型名
In file included from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:50:0,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/src/precomp.hpp:55,
from /home/edeas/new/modules/imgproc/opencv_imgproc_pch_dephelp.cxx:1:
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2600:13: 错误: ‘ptrdiff_t’不是一个类型名
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2623:24: 错误: ‘operator[]’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2623:22: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2623:34: 错误: expected ‘)’ before ‘i’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2626:36: 错误: ‘operator+=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2626:32: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2626:46: 错误: expected ‘)’ before ‘ofs’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2628:36: 错误: ‘operator-=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2628:32: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2628:46: 错误: expected ‘)’ before ‘ofs’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2641:5: 错误: ‘ptrdiff_t’不是一个类型名
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2642:15: 错误: ‘ptrdiff_t’未声明
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2661:13: 错误: ‘ptrdiff_t’不是一个类型名
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2684:21: 错误: ‘ptrdiff_t’未声明
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2687:37: 错误: ‘operator+=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2687:33: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2687:47: 错误: expected ‘)’ before ‘ofs’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2689:37: 错误: ‘operator-=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2689:33: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2689:47: 错误: expected ‘)’ before ‘ofs’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2733:22: 错误: ‘operator[]’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2733:20: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2733:32: 错误: expected ‘)’ before ‘i’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2736:32: 错误: ‘operator+=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2736:28: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2736:42: 错误: expected ‘)’ before ‘ofs’
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2738:32: 错误: ‘operator-=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2738:28: 错误: expected ‘;’ at end of member declaration
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:2738:42: 错误: expected ‘)’ before ‘ofs’
In file included from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:4047:0,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:50,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/src/precomp.hpp:55,
from /home/edeas/new/modules/imgproc/opencv_imgproc_pch_dephelp.cxx:1:
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/operations.hpp:2822:15: 错误: ‘ptrdiff_t’不是一个类型名
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/operations.hpp:3383:31: 错误: ‘ptrdiff_t’不是一个类型名
In file included from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/core.hpp:4048:0,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/include/opencv2/imgproc/imgproc.hpp:50,
from /home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/src/precomp.hpp:55,
from /home/edeas/new/modules/imgproc/opencv_imgproc_pch_dephelp.cxx:1:
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/mat.hpp:1629:57: 错误: ‘operator+=’没有声明为一个函数
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/mat.hpp:1629:57: 错误: ‘ptrdiff_t’在此作用域中尚未声明
/home/edeas/Downloads/OpenCV-2.2.0/modules/imgproc/../core/include/opencv2/core/mat.hpp:1629:57: 附注: 建议的替代:
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: 附注: ‘std::ptrdiff_t’
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: 附注: ‘std::ptrdiff_t’
/home/edeas/new/modules/imgproc/opencv_imgproc_pch_dephelp.cxx:5:1: 错误: expected ‘}’ at end of input
make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/opencv_imgproc_pch_dephelp.o] 错误 1
make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/all] 错误 2
make: *** [all] 错误 2
十分火急,万分感谢! |