TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.71k stars 1.82k forks source link

Can't compile OpenFace using MacOS 13.3 SDK (XCode 14.3.1) #1045

Open derekvantonder opened 1 year ago

derekvantonder commented 1 year ago

Hi OpenFace team, it's an amazing piece of software. I am currently forced to use it on Windows however as I can't compile OpenFace on macOS 👎

With the latest version of XCode, I get this compiler error:

[ 2%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o In file included from /Users/dvt/Downloads/openFace/OpenFace/lib/local/LandmarkDetector/src/CCNF_patch_expert.cpp:35: In file included from /Users/dvt/Downloads/openFace/OpenFace/lib/local/LandmarkDetector/include/stdafx.h:19: In file included from /opt/homebrew/Cellar/opencv/4.7.0_4/include/opencv4/opencv2/core/core.hpp:48: In file included from /opt/homebrew/Cellar/opencv/4.7.0_4/include/opencv4/opencv2/core.hpp:52: In file included from /opt/homebrew/Cellar/opencv/4.7.0_4/include/opencv4/opencv2/core/cvdef.h:185: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/limits:107: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/type_traits:421: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/functional/invoke.h:15: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/type_traits/apply_cv.h:16: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/cstddef:50:9: error: no member named 'nullptr_t' in the global namespace using ::nullptr_t; ~~^

Other sites suggest that this is caused by the new MacOS 13.3 SDK.