Microsoft Visual Studio:https://visualstudio.microsoft.com/zh-hans/downloads/
CMake:https://cmake.org/download/
Dlib:https://github.com/davisking/dlib
Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. See http://dlib.net for the main project documentation and API reference.
Dlib是一个现代的C ++工具箱,其中包含机器学习算法和工具,这些工具和工具可以用C ++创建复杂的软件来解决实际问题。 有关主要项目文档和API参考,请参见http://dlib.net。
一、C/C++编译环境
在Microsoft Visual Studio下载页面,可以通过安装完整版的Visual Studio,或者安装生成工具,安装过程中选择C++生成工具。
没有安装的话会出现以下错误:
windows CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
windows CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
二、安装CMake
在CMake官网下载CMake并安装,也可以通过pip install cmake
安装(很慢)。
没有安装的话会提示缺少CMake。
三、安装Dlib
按照Dlib Github上的README安装就可以。
下载,解压,cd dlib-master
,mkdir build
,cd build
,cmake ..
,cmake --build .
,cd ..
,python setup.py install
。