I'm trying to build DLIB for an iOS project. running the cmake results in a
cmake **path_to_source** -DCMAKE_OSX_ARCHITECTURE="arm64"
unknown type name '__uint32_t'; did you mean '__uint128_t'?
I finally figured out how to do this:
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!
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.