I finally figured out how to do this:
Requirements
- X11 (on a mac you can just open the X11 app and if X11 isn't installed it'll take you to the download).
- Xcode
- cmake (you can use home-brew for that)
Steps
This will create a folder called dlib_build
in which you can find an Xcode project that compiles the library. In the build settings of that Xcode project you can set the build architecture and SDK for any Xcode supported OS you like!
EDIT:
You have to include a lot of custom compiler flags and 3rd party libraries to get dlib to work in a project. Check out the examples.xcproject
build settings.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…