美文网首页
Mac下dlib安装

Mac下dlib安装

作者: kakukeme | 来源:发表于2017-07-12 15:12 被阅读783次

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安装
http://www.jianshu.com/p/3e0b7d1ddc56

Dlib系列之在iOS中提取人脸特征点(第一篇)
http://www.jianshu.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

需要的参数,直接拖过去;

dlib-detector-1.png dlib-detector-2.png dlib-detector-3.png

记录乱


$ 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


相关文章

  • Mac下dlib安装

    face-landmarking-ioshttps://github.com/zweigraf/face-land...

  • MAC下安装dlib

    从Mac App Store安装 XCode(或安装XCode命令行工具)(最低版本是:xcode8 以上) 用 ...

  • Mac安装dlib环境

    系统环境 mac 系统:macOS Sierra 10.12 python:Python 3.6.1 dlib安装...

  • mac 安装 dlib

    写在最前,网上的方法和官网的方法我都试了一下, 都没有成功。后来自己摸索。 第一步:安装工具和依赖brew ins...

  • MAC 安装Dlib

    记录下自己在安装 python Dlib时踩得坑. 其中参考了这边文章 http://www.jianshu.co...

  • mac 安装dlib

    血与泪的教训(在此记录) 尝试了许多方法: 使用brew install dlib 使用 pip install ...

  • Mac OS环境下安装dlib

    安装步骤 安装Cmake 安装Boost 安装dlib 检测是否安装完成 不报错即代表dlib安装完成了 补充:国...

  • mac上安装dlib

    这次比较简单。 设置比较大的timeout,是因为网速太慢。。

  • 利用dlib库进行人脸检测

    一、dlib的使用 dlib需要预先的安装①安装Python还是推荐3.5②下载dlib的安装包https://p...

  • from .dlib import * importerror

    成功安装dlib==19.8.0 Install Dlib for Python 3.6: Python 3.6 ...

网友评论

      本文标题:Mac下dlib安装

      本文链接:https://www.haomeiwen.com/subject/deybhxtx.html