[ 52%] Building CXX object libs/MVS/CMakeFiles/MVS.dir/Mesh.cpp.o
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:980:9: error: ‘BasicVertexPair’ does not name a type
980 | typedef BasicVertexPair<Vertex> VertexPair;
| ^~~~~~~~~~~~~~~
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:982:71: error: ‘VertexPair’ was not declared in this scope; did you mean ‘Vertex’?
982 | EdgeCollapse : public vcg::tri::TriEdgeCollapseQuadric<Mesh, VertexPair, TriEdgeCollapse, QHelper> {
| ^~~~~~~~~~
| Vertex
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:982:107: error: template argument 2 is invalid
982 | dgeCollapseQuadric<Mesh, VertexPair, TriEdgeCollapse, QHelper> {
| ^
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:984:49: error: ‘VertexPair’ was not declared in this scope; did you mean ‘Vertex’?
984 | typedef vcg::tri::TriEdgeCollapseQuadric<Mesh, VertexPair, TriEdgeCollapse, QHelper> TECQ;
| ^~~~~~~~~~
| Vertex
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:984:85: error: template argument 2 is invalid
984 | dgeCollapseQuadric<Mesh, VertexPair, TriEdgeCollapse, QHelper> TECQ;
| ^
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:985:31: error: ‘VertexPair’ does not name a type; did you mean ‘Vertex’?
985 | inline TriEdgeCollapse(const VertexPair &p, int i, vcg::BaseParameterClass *pp) :TECQ(p, i, pp) {}
| ^~~~~~~~~~
| Vertex
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp: In constructor ‘CLEAN::TriEdgeCollapse::TriEdgeCollapse(const int&, int, vcg::BaseParameterClass*)’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:985:83: error: ‘typedef int CLEAN::TriEdgeCollapse::TECQ’ is not a non-static data member of ‘CLEAN::TriEdgeCollapse’
985 | pse(const VertexPair &p, int i, vcg::BaseParameterClass *pp) :TECQ(p, i, pp) {}
| ^~~~
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp: In member function ‘void MVS::Mesh::Clean(float, float, bool, unsigned int, unsigned int, bool)’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:1042:6: error: ‘class vcg::tri::TriEdgeCollapseQuadricParameter’ has no member named ‘BoundaryWeight’
1042 | pp.BoundaryWeight = 1; // the importance of the boundary during simplification: the value is in the range (0..+inf), default (1.0) means that the boundary has the same importance as the rest; values greater than 1.0 raise boundary importance and has the effect of removing less vertices on the border
| ^~~~~~~~~~~~~~
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp: In member function ‘bool MVS::Mesh::ProjectOrtho(const MVS::Camera&, MVS::DepthMap&) const::RasterMesh::ProjectVertex(const Vertex&, int)’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:3901:113: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
3901 | amera.TransformPointC2I(reinterpret_cast<const Point2&>(ptc[v])));
| ~~~~~^
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp: In member function ‘bool MVS::Mesh::ProjectOrtho(const MVS::Camera&, MVS::DepthMap&, SEACAVE::Image8U3&) const::RasterMesh::ProjectVertex(const Vertex&, int)’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:3933:113: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
3933 | amera.TransformPointC2I(reinterpret_cast<const Point2&>(ptc[v])));
| ~~~~~^
In file included from /home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:62:
/home/zjarry/桌面/vcglib/vcg/complex/algorithms/local_optimization.h: In instantiation of ‘void vcg::LocalOptimization<MeshType>::Init() [with LocalModificationType = CLEAN::TriEdgeCollapse; MeshType = CLEAN::Mesh]’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:1065:44: required from here
/home/zjarry/桌面/vcglib/vcg/complex/algorithms/local_optimization.h:269:63: error: ‘HeapSimplexRatio’ is not a member of ‘CLEAN::TriEdgeCollapse’
269 | HeapSimplexRatio = LocalModificationType::HeapSimplexRatio(pp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/zjarry/桌面/vcglib/vcg/complex/algorithms/local_optimization.h:271:32: error: ‘Init’ is not a member of ‘CLEAN::TriEdgeCollapse’
271 | LocalModificationType::Init(m,h,pp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/zjarry/桌面/vcglib/vcg/complex/algorithms/local_optimization.h: In instantiation of ‘void vcg::LocalOptimization<MeshType>::Finalize() [with LocalModificationType = CLEAN::TriEdgeCollapse; MeshType = CLEAN::Mesh]’:
/home/zjarry/桌面/openMVS/libs/MVS/Mesh.cpp:1070:48: required from here
/home/zjarry/桌面/vcglib/vcg/complex/algorithms/local_optimization.h:279:36: error: ‘Finalize’ is not a member of ‘CLEAN::TriEdgeCollapse’
279 | LocalModificationType::Finalize(m,h,pp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[ 54%] Building CXX object libs/MVS/CMakeFiles/MVS.dir/PatchMatchCUDA.cpp.o
[ 55%] Building CXX object libs/MVS/CMakeFiles/MVS.dir/Platform.cpp.o
[ 57%] Building CXX object libs/MVS/CMakeFiles/MVS.dir/PointCloud.cpp.o
make[2]: *** [libs/MVS/CMakeFiles/MVS.dir/build.make:157:libs/MVS/CMakeFiles/MVS.dir/Mesh.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [CMakeFiles/Makefile2:433:libs/MVS/CMakeFiles/MVS.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2
zjarry@zjarry-virtual-machine:~/桌面/openMVS_build$
报错代码发过来我看看兄弟
我也出现了同样的问题,请问楼主解决了吗?
请问这个问题解决了吗?咋感觉mesh这个文件没有找到变量定义?
这个应该是版本的问题,没有找到函数的定义。