MrNiebieski / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

Fail to build and install pyopencv at the step of make and make install in my build folder #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run cmake in my build folder
2.run make

What is the expected output? What do you see instead?
It is expected to see the make success information in the command line.But I 
got the error message which showed as fatal error:too many errors 
emitted,stoping now.[-ferror-limit=]

What version of the product are you using? On what operating system?
PyOpenCV 2.1.0.wr.1.2.0 with Opencv 2.4.3   
My OS is Mac OSX  10.8 Mountain lion

Please provide any additional information below.
here is the entire error message:
[  1%] Building CXX object 
CMakeFiles/pyopencv_extras.dir/package/extras/core/ndarray.o
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:58:13: error: 
      redefinition of 'Mat'
inline Mat::Mat()
            ^
/usr/local/include/opencv2/core/mat.hpp:67:13: note: previous definition is here
inline Mat::Mat() : size(&rows)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:58:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat()
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:61:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type)
            ^
/usr/local/include/opencv2/core/mat.hpp:72:13: note: previous definition is here
inline Mat::Mat(int _rows, int _cols, int _type) : size(&rows)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:61:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:68:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s)
            ^
/usr/local/include/opencv2/core/mat.hpp:78:13: note: previous definition is here
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) : size(&rows)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:68:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:79:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type)
            ^
/usr/local/include/opencv2/core/mat.hpp:85:13: note: previous definition is here
inline Mat::Mat(Size _sz, int _type) : size(&rows)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:79:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(Size _size, int _type)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:87:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type, const Scalar& _s)
            ^
/usr/local/include/opencv2/core/mat.hpp:91:13: note: previous definition is here
inline Mat::Mat(Size _sz, int _type, const Scalar& _s) : size(&rows)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:87:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(Size _size, int _type, const Scalar& _s)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:98:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(const Mat& m)
            ^
/usr/local/include/opencv2/core/mat.hpp:111:13: note: previous definition is
      here
inline Mat::Mat(const Mat& m)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:98:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(const Mat& m)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:106:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
            ^
/usr/local/include/opencv2/core/mat.hpp:129:13: note: previous definition is
      here
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:106:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:126:13: error: 
      redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type, void* _data, size_t _step)
            ^
/usr/local/include/opencv2/core/mat.hpp:151:13: note: previous definition is
      here
inline Mat::Mat(Size _sz, int _type, void* _data, size_t _step)
            ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:126:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(Size _size, int _type, void* _data, size_t _step)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:146:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(const Mat& m, const Range& rowRange, const Range& colRange)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:149:10: error: 
      'operator=' is a protected member of 'cv::Mat::MStep'
    step = m.step; refcount = m.refcount;
    ~~~~ ^ ~~~~~~
/usr/local/include/opencv2/core/core.hpp:1973:16: note: declared protected here
        MStep& operator = (const MStep&);
               ^
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from 
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:180:13: error: 
      constructor for 'cv::Mat' must explicitly initialize the member 'size'
      which does not have a default constructor
inline Mat::Mat(const Mat& m, const Rect& roi)
            ^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
    MSize size;
          ^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
      declared here
    struct CV_EXPORTS MSize
                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/pyopencv_extras.dir/package/extras/core/ndarray.o] 
Error 1
make[1]: *** [CMakeFiles/pyopencv_extras.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by TroyZX1...@gmail.com on 18 Nov 2012 at 5:03