face-landmarking-ios
https://github.com/zweigraf/face-landmarking-ios
The project to build Dlib on iOS was generated according to these instructions.
https://stackoverflow.com/questions/34591254/how-to-build-dlib-for-ios/35058969#35058969
Mac下dlib安装
//www.greatytc.com/p/3e0b7d1ddc56
Dlib系列之在iOS中提取人脸特征点(第一篇)
//www.greatytc.com/p/701e8dea887e
Mac下dlib安装
$ mkdir build
$ cd build
$ cmake -G Xcode .. // 执行后,报下面的错误, 修改
$ cmake --build . --config Debug
cmake -G Xcode ..
执行后,报下面的错误
// 1、
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.
CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "/Users/kokia/kokia_face_detect/dlib/build/CMakeFiles/CMakeOutput.log".
See also "/Users/kokia/kokia_face_detect/dlib/build/CMakeFiles/CMakeError.log".
// 2、出现上面错误,根据下面网址修改
https://stackoverflow.com/questions/41380900/cmake-error-no-cmake-c-compiler-could-be-found-using-xcode-and-glfw
// 3、使用这条命令后编译成功;
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
编译dlib/examples
$ cd /Users/kokia/kokia_face_detect/dlib/examples
$ mkdir build
$ cd build/
$ cmake -G Xcode ..
$ cmake --build . --config Debug
tip: cmake --build . --config Debug 使用Debug,这样xcode断点才能调试,Release无法调试;
Xcode 调试dlib example
需要的参数,直接拖过去;
记录乱
$ xcrun -find c++
/Library/Developer/CommandLineTools/usr/bin/c++
$ xcrun -find cc
/Library/Developer/CommandLineTools/usr/bin/cc
http://railsapps.github.io/xcode-command-line-tools.html
https://stackoverflow.com/questions/33998853/the-cxx-compiler-identification-is-unknown-xcode
$ sudo xcode-select --switch /Library/Developer/CommandLineTools
// 3、使用这条命令后编译成功;
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
cmake -G Xcode ..
cd examples
cd build
cmake -G Xcode ..
cmake --build . --config Release
cmake --build . --config Debug