elliotwoods / ofxCvGui

Panel based GUI library with DOM-like features for openFrameworks
http://www.kimchiandchips.com
32 stars 10 forks source link

macOS + OF 0.11.2 = No matching constructor for initialization of 'Utils::AnnotationManager::DrawAnnotation' #28

Open stephanschulz opened 2 years ago

stephanschulz commented 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.

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#L300

It seems like Xcode does not like making functions inside other functions?

Screen Shot 2021-12-10 at 10 05 26 AM