zweigraf / face-landmarking-ios

👦 Basic face landmarking on iPhone with Dlib via Swift & ObjC++
481 stars 125 forks source link

'vector' file not found #32

Closed GLinnik21 closed 7 years ago

GLinnik21 commented 7 years ago

Sorry guys. I have the same question. I develop my own app with face landmark detection and use this project as an example. I installed dlib with cocoa pod, also tried library provided in this repository and every time I include <dlib/image_processing.h> I get .../Pods/Headers/Public/dlib/dlib/image_processing/scan_image.h:6:10: 'vector' file not found. If I include <dlib/image_processing/frontal_face_detector.h> I get .../Pods/dlib/build/install/include/dlib/algs.h:17:10: "Dlib requires C++11 support. Give your compiler the -std=c++11 option to enable it." .../Pods/dlib/build/install/include/dlib/algs.h:93:10: 'string' file not found All code is implemented in .mm file without .h. All pre-compiler and complier flags correspond to @zweigraf project. Please help. Thank you

GLinnik21 commented 7 years ago

Seems like I can't include any STL template

GLinnik21 commented 7 years ago

Don't put everything in one .mm file. Bridging header should get only .h or .m files