Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doodle Classifier: Getting error "No member named 'setTo' in 'ofXml'" in ofApp.cpp #30

Open
Martinukai opened this issue Jun 1, 2018 · 5 comments

Comments

@Martinukai
Copy link

I am getting these various errors in the ofApp.cpp file when compiling:

line 43: No member named 'setTo' in 'ofXml'
line 44 -> 46: No matching member function for call to 'getValue'
line 47: No member named 'exists' in 'ofXml'
line 48: No member named 'setTo' in 'ofXml'
line 54: No member named 'setToSibling' in 'ofXml'

Any tips would be much appreciated. Thanks.

@genekogan
Copy link
Member

the api of ofXml has changed since 0.10.0 release, so we need to update it. for now you can get it working again using an older openframeworks (0.9.*) until we fix it. if you manage to, a PR would be very welcome.

@Martinukai
Copy link
Author

Thanks for the speedy response. What is a PR? I'm not an advanced coder ;)

@heaversm
Copy link

This applies to a number of things I would imagine. I came across the same error on KeyboardOSC in the osc-modules directory. I would be happy to do a PR, but it's not immediately apparent how things should map. For example, @genekogan , in .9.x we have bool ofXml::setTo(const string& path){ , and in .10.x it seems we only have void ofXml::setName(const std::string & name){.

One is a bool, one is void, one is looking or a path, one is looking for a name, etc. If you have any pointers on where to get started, I could look into it.

@genekogan
Copy link
Member

yes, all the xml needs to be redone either using the native ofXml or ofJson objects (not ofxXml or ofxJson) or using ofxXmlSettings. if anyone wants to take a shot and submit a pull request, please do! otherwise i should get to it sometime next few weeks...

@PrinceSajjadHussain
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants