我正在尝试安装一个需要 Boost 的软件。因此我通过运行此命令下载了 boost
wget https://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz
然后运行引导程序,然后生成 b2。
当我运行要安装的软件的 cmake 命令时出现以下错误:
cmake -DWITH_BOOST_STATIC=OFF -DBUILD_INTERFACE_PYTHON=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_APPS=ON -DBUILD_TESTS=OFF cmake -DCMAKE_INSTALL_PREFIX=~/installations/face_swap -DCMAKE_BUILD_TYPE=Release ..
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- timer
-- thread
-- chrono
-- system
-- date_time
-- atomic
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
Unable to find the requested Boost libraries.
Boost version: 1.65.1
Boost include path: /usr/local/include
Could not find the following Boost libraries:
boost_python
boost_numpy
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
interfaces/python/CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/face_swap/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/face_swap/build/CMakeFiles/CMakeError.log".
它正在 /usr/local/include 中查找,但我可以看到在 /usr/lib/x86_64-linux-gnu/ 中有类似 libboost_python3.so 的文件。
我下一步该怎么做?