Z JArry 2022-04-17 03:25 采纳率: 0%
浏览 390

配置openmvs最后一步make -j2 && sudo make install 编译错误怎么办

[ 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$ 

  • 写回答

4条回答 默认 最新

  • 「已注销」 2022-04-17 10:28
    关注

    报错代码发过来我看看兄弟

    评论

报告相同问题?

问题事件

  • 创建了问题 4月17日

悬赏问题

  • ¥50 易语言把MYSQL数据库中的数据添加至组合框
  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况