frauzufall / ofxGuiExtended

ofParameter based GUI addon for openFrameworks; derived from the core OF ofxGui addon and ofxDOM.
MIT License
113 stars 29 forks source link

ofxGuiExtended breaks on new ofxml api #50

Closed nanu-c closed 7 years ago

nanu-c commented 7 years ago
/home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.h:41:15: error: invalid initialization of reference of type ‘ofJson& {aka nlohmann::basic_json<>&}’ from expression of type ‘ofXml’
    ofSerialize(serializer, getParameter());
    ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.h:8:0,
                 from /home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.cpp:1:
/home/nanu/visuals/openFrameworks/libs/openFrameworks/utils/ofJson.h:55:13: note: in passing argument 1 of ‘void ofSerialize(ofJson&, ofAbstractParameter&)’
 inline void ofSerialize(ofJson & js, ofAbstractParameter & parameter){
             ^~~~~~~~~~~
In file included from /home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.cpp:1:0:
/home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.h: In instantiation of ‘void ofxGuiElement::loadFrom(T&) [with T = ofXml]’:
/home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.cpp:465:15:   required from here
/home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.h:46:17: error: invalid initialization of reference of type ‘const ofJson& {aka const nlohmann::basic_json<>&}’ from expression of type ‘ofXml’
    ofDeserialize(serializer, getParameter());
    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.h:8:0,
                 from /home/nanu/visuals/openFrameworks/addons/ofxGuiExtended/src/ofxGuiElement.cpp:1:
/home/nanu/visuals/openFrameworks/libs/openFrameworks/utils/ofJson.h:76:13: note: in passing argument 1 of ‘void ofDeserialize(const ofJson&, ofAbstractParameter&)’
 inline void ofDeserialize(const ofJson & json, ofAbstractParameter & parameter){
nanu-c commented 7 years ago

mhm i think it's a Problem with my of libxml linking

frauzufall commented 7 years ago

Hey, sorry for being inactive for a while, I am trying to dive in, but I cannot compile the current OF master branch at all. Will have a look at your work as soon as I got a solution there.

frauzufall commented 7 years ago

This should be fixed with this OF PR https://github.com/openframeworks/openFrameworks/pull/5345 (merged in 3 days ago) At least I don't get any more errors now. Due to the poco exclusion there was another error so I also removed its usage within this addon.