Open stephanschulz opened 2 years ago
I am trying to use the addon on macOS 10.15.4 and as a test attempt to compile Example_Simple. I added #define HAS_OFXGRABCAM to ofApp.h to force the use of ofxGrabCam.
Example_Simple
#define HAS_OFXGRABCAM
But now I get errors round Utils.cpp
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:237:36: No matching constructor for initialization of 'Utils::AnnotationManager::DrawAnnotation' https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L237
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:237:36: No matching constructor for initialization of 'Utils::AnnotationManager::DrawAnnotation'
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:271:19: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::TextAnnotation' https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L271
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:271:19: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::TextAnnotation'
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:300:20: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::DrawAnnotation' https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L300
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:300:20: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::DrawAnnotation'
It seems like Xcode does not like making functions inside other functions?
I am trying to use the addon on macOS 10.15.4 and as a test attempt to compile
Example_Simple
. I added#define HAS_OFXGRABCAM
to ofApp.h to force the use of ofxGrabCam.But now I get errors round Utils.cpp
/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:237:36: No matching constructor for initialization of 'Utils::AnnotationManager::DrawAnnotation'
https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L237/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:271:19: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::TextAnnotation'
https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L271/Applications/of_v0.11.2_osx_release/addons/ofxCvGui/src/ofxCvGui/Utils/Utils.cpp:300:20: No matching constructor for initialization of 'ofxCvGui::Utils::AnnotationManager::DrawAnnotation'
https://github.com/elliotwoods/ofxCvGui/blob/0cb9f70dbedc9663fb22643e656f03ef80fb1752/src/ofxCvGui/Utils/Utils.cpp#L300It seems like Xcode does not like making functions inside other functions?