Open ayu1121 opened 4 years ago
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:1488:70: error: ‘cv::Matx_DivOp’ has not been declared TMatrix(const TMatrix<TYPE,m,n>& a, const TMatrix<TYPE,m,n>& b, cv::Matx_DivOp) : Base(a, b, cv::Matx_DivOp()) {} ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In constructor ‘SEACAVE::TMatrix<TYPE, m, n>::TMatrix(const SEACAVE::TMatrix<TYPE, m, n>&, const SEACAVE::TMatrix<TYPE, m, n>&, int)’: /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:1488:95: error: ‘Matx_DivOp’ is not a member of ‘cv’ TMatrix(const TMatrix<TYPE,m,n>& a, const TMatrix<TYPE,m,n>& b, cv::Matx_DivOp) : Base(a, b, cv::Matx_DivOp()) {} ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘bool SEACAVE::TColor::operator==(const SEACAVE::TColor&) const [with TYPE = unsigned char]’: /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2080:108: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] template <> inline bool TColor::operator==(const TColor& col) const { return (((const uint32_t)c) == ((const uint32_t)col.c)); } ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2080:137: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] template <> inline bool TColor::operator==(const TColor& col) const { return (((const uint32_t)c) == ((const uint32_t)col.c)); } ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘bool SEACAVE::TColor::operator!=(const SEACAVE::TColor&) const [with TYPE = unsigned char]’: /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2081:108: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] template <> inline bool TColor::operator!=(const TColor& col) const { return (((const uint32_t)c) != ((const uint32_t)col.c)); } ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2081:137: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] template <> inline bool TColor::operator!=(const TColor& col) const { return (((const uint32_t)c) != ((const uint32_t)col.c)); } ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘uint32_t SEACAVE::TColor::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’: /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2082:91: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] template <> inline uint32_t TColor::toDWORD() const { return ((const uint32_t)c); } ^ CMake Error at /home/ayu/桌面/SFM/openMVS/openMVS/build/Cotire.cmake:1990 (message): cotire: error 1 precompiling /home/ayu/桌面/SFM/openMVS/openMVS_build/libs/Common/cotire/Common_CXX_prefix.hxx. Call Stack (most recent call first): /home/ayu/桌面/SFM/openMVS/openMVS/build/Cotire.cmake:3694 (cotire_precompile_prefix_header)
libs/Common/CMakeFiles/Common.dir/build.make:63: recipe for target 'libs/Common/cotire/Common_CXX_prefix.hxx.gch' failed make[2]: [libs/Common/cotire/Common_CXX_prefix.hxx.gch] Error 1 CMakeFiles/Makefile2:147: recipe for target 'libs/Common/CMakeFiles/Common.dir/all' failed make[1]: [libs/Common/CMakeFiles/Common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
ceres is 1.14.0 eigen is 3.2.10 opencv2.4.10
pls try updating to a newer opencv or try building in release
ceres is 1.14.0 eigen is 3.2.10 opencv2.4.10 这个问题已经解决了吗?have you already resolve this problem?谢谢,thank you
Specifications like the version of the project, operating system, and hardware
Steps to reproduce the problem
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:1488:70: error: ‘cv::Matx_DivOp’ has not been declared TMatrix(const TMatrix<TYPE,m,n>& a, const TMatrix<TYPE,m,n>& b, cv::Matx_DivOp) : Base(a, b, cv::Matx_DivOp()) {} ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In constructor ‘SEACAVE::TMatrix<TYPE, m, n>::TMatrix(const SEACAVE::TMatrix<TYPE, m, n>&, const SEACAVE::TMatrix<TYPE, m, n>&, int)’: /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:1488:95: error: ‘Matx_DivOp’ is not a member of ‘cv’ TMatrix(const TMatrix<TYPE,m,n>& a, const TMatrix<TYPE,m,n>& b, cv::Matx_DivOp) : Base(a, b, cv::Matx_DivOp()) {} ^ /home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘bool SEACAVE::TColor::operator==(const SEACAVE::TColor&) const [with TYPE = unsigned char]’:
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2080:108: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <> inline bool TColor::operator==(const TColor& col) const { return (((const uint32_t)c) == ((const uint32_t)col.c)); }
^
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2080:137: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <> inline bool TColor::operator==(const TColor& col) const { return (((const uint32_t)c) == ((const uint32_t)col.c)); }
^
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘bool SEACAVE::TColor::operator!=(const SEACAVE::TColor&) const [with TYPE = unsigned char]’:
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2081:108: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <> inline bool TColor::operator!=(const TColor& col) const { return (((const uint32_t)c) != ((const uint32_t)col.c)); }
^
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2081:137: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <> inline bool TColor::operator!=(const TColor& col) const { return (((const uint32_t)c) != ((const uint32_t)col.c)); }
^
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h: In member function ‘uint32_t SEACAVE::TColor::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’:
/home/ayu/桌面/SFM/openMVS/openMVS/libs/Common/Types.h:2082:91: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <> inline uint32_t TColor::toDWORD() const { return ((const uint32_t)c); }
^
CMake Error at /home/ayu/桌面/SFM/openMVS/openMVS/build/Cotire.cmake:1990 (message):
cotire: error 1 precompiling
/home/ayu/桌面/SFM/openMVS/openMVS_build/libs/Common/cotire/Common_CXX_prefix.hxx.
Call Stack (most recent call first):
/home/ayu/桌面/SFM/openMVS/openMVS/build/Cotire.cmake:3694 (cotire_precompile_prefix_header)
libs/Common/CMakeFiles/Common.dir/build.make:63: recipe for target 'libs/Common/cotire/Common_CXX_prefix.hxx.gch' failed make[2]: [libs/Common/cotire/Common_CXX_prefix.hxx.gch] Error 1 CMakeFiles/Makefile2:147: recipe for target 'libs/Common/CMakeFiles/Common.dir/all' failed make[1]: [libs/Common/CMakeFiles/Common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2