Deep SDF代码问题解决

运行DeepSDF文章代码时不注意安装依赖会出现一些问题,
需要注意安装依赖

  1. CLI11
  2. Pangolin
  3. nanoflann
  4. Eigen3
    下面将问题整理如下:
    问题1:
// 
CMake Error at CMakeLists.txt:4 (find_package):
  Could not find a package configuration file provided by "CLI11" with any of
  the following names:

    CLI11Config.cmake
    cli11-config.cmake

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

解决方案1:

// 
git clone https://github.com/CLIUtils/CLI11
cd CLI11/
mkdir build 
cd build 
git submodule update --init 
cmake .. 
cmake --build .
sudo cmake --install . 
This will install CLI11 globaly. Also you can use local options proposed at CLI README. But in this case you will have to change CMakeLists.txt.

问题2:

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

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

    Eigen3Config.cmake
    eigen3-config.cmake

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

解决方案:

// 
git clone https://github.com/eigenteam/eigen-git-mirror

#安装
cd eigen-git-mirror
mkdir build
cd build
cmake ..
sudo make install

#安装Pangolin

// 
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build 

#安装nanoflann

// 
git clone https://github.com/jlblancoc/nanoflann
cd nanoflann
mkdir build
cd build
cmake ..
cmake --build 
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值