运行DeepSDF文章代码时不注意安装依赖会出现一些问题,
需要注意安装依赖
- CLI11
- Pangolin
- nanoflann
- 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