问题描述:在编译安装openmvs时,出现很多警告
问题原因:缺少库
问题解决办法:参考这篇博客,在cmakelisit中添加对应的库
[ 17%] Built target Common
[ 26%] Built target Math
[ 46%] Built target IO
[ 47%] Linking CXX shared library ../../lib/libMVS.so
[ 71%] Built target MVS
[ 73%] Linking CXX executable ../../bin/InterfaceVisualSFM
[ 73%] Linking CXX executable ../../bin/InterfaceCOLMAP
[ 75%] Built target InterfaceVisualSFM
[ 76%] Built target InterfaceCOLMAP
Scanning dependencies of target DensifyPointCloud
Scanning dependencies of target ReconstructMesh
[ 77%] Building CXX object apps/ReconstructMesh/CMakeFiles/ReconstructMesh.dir/ReconstructMesh.cpp.o
[ 78%] Building CXX object apps/DensifyPointCloud/CMakeFiles/DensifyPointCloud.dir/DensifyPointCloud.cpp.o
In file included from /home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Common.h:176:0,
from /home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/ReconstructMesh/ReconstructMesh.cpp:32:
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator==(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h:2080:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((con
^
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h:2080:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
or& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator!=(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h:2081:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((con
^
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h:2081:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
or& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘uint32_t SEACAVE::TColor<TYPE>::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’中:
/home/ning/software/openMVS/apps/ReconstructMesh/../../libs/MVS/../Common/Types.h:2082:91: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
ine uint32_t TColor<uint8_t>::toDWORD() const { return *((const uint32_t*)c); }
^
In file included from /home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Common.h:176:0,
from /home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/DensifyPointCloud/DensifyPointCloud.cpp:32:
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator==(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h:2080:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h:2080:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator!=(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h:2081:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h:2081:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h: 在成员函数‘uint32_t SEACAVE::TColor<TYPE>::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’中:
/home/ning/software/openMVS/apps/DensifyPointCloud/../../libs/MVS/../Common/Types.h:2082:91: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline uint32_t TColor<uint8_t>::toDWORD() const { return *((const uint32_t*)c); }
^
[ 80%] Linking CXX executable ../../bin/DensifyPointCloud
[ 81%] Linking CXX executable ../../bin/ReconstructMesh
[ 81%] Built target DensifyPointCloud
[ 81%] Built target ReconstructMesh
Scanning dependencies of target RefineMesh
Scanning dependencies of target TextureMesh
[ 82%] Building CXX object apps/RefineMesh/CMakeFiles/RefineMesh.dir/RefineMesh.cpp.o
[ 84%] Building CXX object apps/TextureMesh/CMakeFiles/TextureMesh.dir/TextureMesh.cpp.o
In file included from /home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Common.h:176:0,
from /home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/TextureMesh/TextureMesh.cpp:32:
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator==(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2080:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((con
^
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2080:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
or& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator!=(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2081:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((con
^
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2081:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
or& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘uint32_t SEACAVE::TColor<TYPE>::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’中:
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2082:91: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
ine uint32_t TColor<uint8_t>::toDWORD() const { return *((const uint32_t*)c); }
^
In file included from /home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Common.h:176:0,
from /home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/RefineMesh/RefineMesh.cpp:32:
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator==(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h:2080:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h:2080:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator!=(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h:2081:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h:2081:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h: 在成员函数‘uint32_t SEACAVE::TColor<TYPE>::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’中:
/home/ning/software/openMVS/apps/RefineMesh/../../libs/MVS/../Common/Types.h:2082:91: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline uint32_t TColor<uint8_t>::toDWORD() const { return *((const uint32_t*)c); }
^
In file included from /home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.h:2768:0,
from /home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Common.h:176,
from /home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/TextureMesh/TextureMesh.cpp:32:
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.inl: In instantiation of ‘bool SEACAVE::TImage<TYPE>::Save(const SEACAVE::String&) const [with TYPE = SEACAVE::TColor<unsigned char>]’:
/home/ning/software/openMVS/apps/TextureMesh/TextureMesh.cpp:269:46: required from here
/home/ning/software/openMVS/apps/TextureMesh/../../libs/MVS/../Common/Types.inl:3018:54: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
static const bool is_little_endian = (*((float*)b) < 1.f);
^
[ 85%] Linking CXX executable ../../bin/RefineMesh
[ 86%] Linking CXX executable ../../bin/TextureMesh
[ 86%] Built target RefineMesh
[ 88%] Generating CXX prefix source apps/Viewer/cotire/Viewer_CXX_prefix.cxx
[ 89%] Generating CXX prefix header apps/Viewer/cotire/Viewer_CXX_prefix.hxx
[ 89%] Built target TextureMesh
[ 90%] Building CXX precompiled header apps/Viewer/cotire/Viewer_CXX_prefix.hxx.gch
In file included from /home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Common.h:176:0,
from /home/ning/software/openMVS/apps/Viewer/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/Viewer/Common.h:39,
from /home/ning/software/openMVS/build/apps/Viewer/cotire/Viewer_CXX_prefix.cxx:4,
from /home/ning/software/openMVS/build/apps/Viewer/cotire/Viewer_CXX_prefix.hxx:4:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator==(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2080:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2080:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator==(const TColor& col) const { return (*((const uint32_t*)c) == *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h: 在成员函数‘bool SEACAVE::TColor<TYPE>::operator!=(const SEACAVE::TColor<TYPE>&) const [with TYPE = unsigned char]’中:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2081:108: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2081:137: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline bool TColor<uint8_t>::operator!=(const TColor& col) const { return (*((const uint32_t*)c) != *((const uint32_t*)col.c)); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h: 在成员函数‘uint32_t SEACAVE::TColor<TYPE>::toDWORD() const [with TYPE = unsigned char; uint32_t = unsigned int]’中:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2082:91: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
template <> inline uint32_t TColor<uint8_t>::toDWORD() const { return *((const uint32_t*)c); }
^
Scanning dependencies of target Viewer
[ 92%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Common.cpp.o
[ 93%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Camera.cpp.o
[ 94%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Image.cpp.o
[ 96%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Scene.cpp.o
In file included from /home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Types.h:2775:0,
from /home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Common.h:176,
from /home/ning/software/openMVS/apps/Viewer/../../libs/MVS/Common.h:42,
from /home/ning/software/openMVS/apps/Viewer/Common.h:39,
from /home/ning/software/openMVS/build/apps/Viewer/cotire/Viewer_CXX_prefix.cxx:4,
from /home/ning/software/openMVS/build/apps/Viewer/cotire/Viewer_CXX_prefix.hxx:4:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h: In instantiation of ‘const SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::LEAF_TYPE& SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::Leaf() const [with TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int]’:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:366:31: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::_Collect(const CELL_TYPE&, TYPE, const COLLECTOR&, INSERTER&) const [with INSERTER = IntersectRayPoints; COLLECTOR = IntersectRayPoints; ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 2, 8192>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 512; int NOM = 0; int DENOM = 1; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::CELL_TYPE = SEACAVE::TOctreeCell<float, 3, unsigned int>]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:403:10: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Collect(INSERTER&, const COLLECTOR&) const [with INSERTER = IntersectRayPoints; COLLECTOR = IntersectRayPoints; ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 2, 8192>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 512; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/Scene.cpp:69:30: required from here
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h:85:92: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
AF_TYPE& Leaf() const { ASSERT(IsLeaf()); return *((const LEAF_TYPE*)m_data); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h: In instantiation of ‘const SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::NODE_TYPE& SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::Node() const [with TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int]’:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:368:4: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::_Collect(const CELL_TYPE&, TYPE, const COLLECTOR&, INSERTER&) const [with INSERTER = IntersectRayPoints; COLLECTOR = IntersectRayPoints; ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 2, 8192>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 512; int NOM = 0; int DENOM = 1; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::CELL_TYPE = SEACAVE::TOctreeCell<float, 3, unsigned int>]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:403:10: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Collect(INSERTER&, const COLLECTOR&) const [with INSERTER = IntersectRayPoints; COLLECTOR = IntersectRayPoints; ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 2, 8192>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 512; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/Scene.cpp:69:30: required from here
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h:83:93: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
E_TYPE& Node() const { ASSERT(!IsLeaf()); return *((const NODE_TYPE*)m_data); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h: In instantiation of ‘SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::NODE_TYPE& SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::Node() [with TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int]’:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:239:23: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Insert(const ITEMARR_TYPE&, const AABB_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::AABB_TYPE = SEACAVE::TAABB<float, 3>]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:260:8: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Insert(const ITEMARR_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:134:8: required from ‘SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::TOctree(const ITEMARR_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/Scene.cpp:181:49: required from here
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h:84:75: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
inline NODE_TYPE& Node() { ASSERT(!IsLeaf()); return *((NODE_TYPE*)m_data); }
^
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h: In instantiation of ‘SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::LEAF_TYPE& SEACAVE::TOctreeCell<TYPE, DIMS, DATA_TYPE>::Leaf() [with TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int]’:
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:194:53: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::_Insert(SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::CELL_TYPE&, TYPE, SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::IDXARR_TYPE*) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::CELL_TYPE = SEACAVE::TOctreeCell<float, 3, unsigned int>; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::IDXARR_TYPE = SEACAVE::cList<long unsigned int, long unsigned int, 0, 1024>]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:250:9: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Insert(const ITEMARR_TYPE&, const AABB_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1; SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::AABB_TYPE = SEACAVE::TAABB<float, 3>]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:260:8: required from ‘void SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::Insert(const ITEMARR_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.inl:134:8: required from ‘SEACAVE::TOctree<ITEMARR_TYPE, TYPE, DIMS, DATA_TYPE, SIZE, NOM, DENOM>::TOctree(const ITEMARR_TYPE&) [with ITEMARR_TYPE = SEACAVE::cList<SEACAVE::TPoint3<float>, const SEACAVE::TPoint3<float>&, 0, 8192, unsigned int>; TYPE = float; int DIMS = 3; DATA_TYPE = unsigned int; int SIZE = 256; int NOM = 0; int DENOM = 1]’
/home/ning/software/openMVS/apps/Viewer/Scene.cpp:181:49: required from here
/home/ning/software/openMVS/apps/Viewer/../../libs/MVS/../Common/Octree.h:86:74: 警告:提领类型双关的指针将破坏强重叠规则 [-Wstrict-aliasing]
inline LEAF_TYPE& Leaf() { ASSERT(IsLeaf()); return *((LEAF_TYPE*)m_data); }
^
[ 97%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Viewer.cpp.o
[ 98%] Building CXX object apps/Viewer/CMakeFiles/Viewer.dir/Window.cpp.o
[100%] Linking CXX executable ../../bin/Viewer
/usr/bin/ld: CMakeFiles/Viewer.dir/Image.cpp.o: undefined reference to symbol '_ZN2cv6resizeERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddi'
/usr/local/lib/libopencv_imgproc.so.3.0: 无法添加符号: DSO missing from command line
collect2: 错误:ld 返回 1
apps/Viewer/CMakeFiles/Viewer.dir/build.make:255: recipe for target 'bin/Viewer' failed
make[2]: *** [bin/Viewer] Error 1
CMakeFiles/Makefile2:967: recipe for target 'apps/Viewer/CMakeFiles/Viewer.dir/all' failed
make[1]: *** [apps/Viewer/CMakeFiles/Viewer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2