how to build DLIB for iOS
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
- In terminal make the
lib-xx.xx/examples
your root Run:
mkdir build
cd build
cmake -G Xcode ..
cmake --build . --config Release
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.
Adding Dlib to my Xcode project but no .h files are found
I found the issue and it was just a case of me not reading the article properly. I had added a Library Search Path but not a Header Search Path. Dlib seems to be working properly now with Xcode and I can include the .h files.
Related Topics
Apply Gradient Color to Arc Created with Uibezierpath
Get Latitude/Longitude from Address
Assertion Failure When Using Uisearchdisplaycontroller in Uitableviewcontroller
Programmatically Linking Uipagecontrol to Uiscrollview
Ios: Uiview Subclass Init or Initwithframe:
Presentviewcontroller and Displaying Navigation Bar
Color in Storyboard Not Matching Uicolor
How to Build .Ipa for React Native
Change the Color of iOS Navigation Bar
How to Detect Taps on Mkpolylines/Overlays Like Maps.App
iOS Certificate Pinning with Swift and Nsurlsession
How to Get All Enum Values as an Array
How to Programmatically Check Support of 'Face Id' and 'Touch Id'
How to Use Sf Symbols in iOS 12 and Below
How to Show Complete List When Keyboard Is Showing Up in Swiftui
No Such File and Directory Found Xcode 7
How to Get the Custom Overlay for Uiimagepicker Camera to Be Full Screen in iOS 7