1

所以我一直在关注这个博客在 windows 上编译 mlpack。除了最终编译之外,我几乎完成了所有步骤。我为 Windows 安装了 cmake 3.7.1。运行 cmake 命令时出现以下错误

cmake -G "Visual Studio 14 2015 Win64" -DBLAS_LIBRARY:FILEPATH="C:/projects/mlpack-master/packages/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DLAPACK_LIBRARY:FILEPATH="C:/projects/mlpack-master/packages/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DARMADILLO_INCLUDE_DIR="C:/projects/armadillo-7.600.2/include" -DARMADILLO_LIBRARY:FILEPATH="C:/projects/armadillo-7.600.2/build/Debug/armadillo.lib" -DBOOST_INCLUDEDIR:PATH="C:/projects/mlpack-master/packages/boost.1.61.0.0/lib/native/include" -DBOOST_LIBRARYDIR:PATH="C:/projects/mlpack-master/packages/boost_libs" -DBOOST_ROOT:PATH="C:/projects/mlpack-master/packages/boost.1.61.0.0" -DDEBUG=OFF -DPROFILE=OFF ..

在执行此操作时,我收到以下错误:

CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindBoost.cmake:1793 (message):
    Unable to find the requested Boost libraries.

    Boost version: 1.61.0

    Boost include path:
    C:/projects/mlpack-master/packages/boost.1.61.0.0/lib/native/include

    Could not find the following Boost libraries:

                    boost_unit_test_framework
                    boost_serialization

    Some (but not all) of the required Boost libraries were found.  You may
    need to install these additional Boost libraries.  Alternatively, set
    BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
    to the location of Boost.
Call Stack (most recent call first):
    CMakeLists.txt:270 (find_package)

以前我使用 Boost 1.63.0 并得到了同样的错误。由于某种原因,cmake 无法检测到boost_unit_test_frameworkboost_serialization但它能够boost_program_options正确检测到。自2天以来,我一直在尝试解决此问题。任何帮助表示赞赏!

4

0 回答 0