Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)

一、ecto

编译错误
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第1张图片

编译解决参考https://blog.csdn.net/ckkboy/article/details/99584987#commentBox
解决步骤:
1.修改ecto/src/lib/util.cpp

sudo gedit /home/huangqifan/ecto/src/lib/util.cpp

去掉头文件里面的 /tr1
将里面的std::tr1::unordered_map换为boost::unordered_map
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第2张图片

2.修改ecto/src/lib/plasm/impl.hpp

sudo gedit /home/huangqifan/ecto/src/lib/plasm/impl.hpp

将头文件里面的 /tr1 去掉
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第3张图片

二、ecto_image_pipeline

编译错误
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第4张图片

编译解决参考https://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return

sudo gedit /home/huangqifan/ecto_image_pipeline/src/ecto_image_pipeline/include/ecto_image_pipeline/pinhole_camera_model.h`

  boost::shared_ptr<Cache> cache_; // Holds cached data for internal use
  bool initialized() const { return cache_; }

改为

  boost::shared_ptr<Cache> cache_; // Holds cached data for internal use
  bool initialized() const { return static_cast<bool> (cache_); }

Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第5张图片

三、ecto_opencv

编译错误
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第6张图片

按网址https://github.com/plasmodic/ecto_opencv 点击Pull requests 进去后,点击Commits进去后点击第一个。修改/ceshi2/src/ecto_opencv/cells/cv_bp/opencv/cv_mat.cpp ,
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第7张图片

或直接替换文件

git clone -b migration_To_Ubunt18.04 git://github.com/zweistein/ecto_opencv.git

再次编译还有错误
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第8张图片

从https://github.com/GerritTheron/openCV-contrib/blob/master/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp下载xfeatures2d.hpp

sudo cp -r '/home/huangqifan/桌面/xfeatures2d.hpp' '/usr/include/opencv2'

四、ork_reconstruction

编译错误

Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第9张图片
Ubuntu18.04配置ork(ecto、ecto_image_pipeline、ecto_opencv、ork_reconstruction)_第10张图片

参考https://blog.csdn.net/xingdou520/article/details/84861434

sudo gedit /home/huangqifan/ork_reconstruction/src/PointCloudMesh.cpp

添加#include

你可能感兴趣的:(opencv,visual,studio,c++,人工智能,计算机视觉)