所以我一直关注this blog来编译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_framework
和boost_serialization
,但它能够正确检测到boost_program_options
。我试图解决这个问题,因为2天。任何帮助表示赞赏!