【环境搭建】深度图融合点云fusibile环境配置

203 阅读1分钟
mkdir build && cd build
cmake ..
make

进行编译即可,会自动导出后续fusibile被调用时的路径

一些坑记录在下面:


运行转化点云时报错:Error: no kernel image is available for execution on the device】


【OpenCV报错】

CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

【报错:fatal error: GL/gl.h: No such file or directory】

  • 原因:系统中缺少OpenGl库
  • 解决方案
apt-get install mesa-common-dev
apt-get install libgl1-mesa-dev

【报错: #error -- unsupported GNU version! gcc versions later than 6 are not supported

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10