ofxUI HELP!!

I’m trying to compile something, ANYTHING in Reza’s ofxUI but I had always the same error

I tryed oF releases 007 and 0071

I get this error:

|=== UI, release ===|
…\addons\ofxUI\src\ofxUIRectangle.h||In member function ‘bool ofxUIRectangle::rIntersects(const ofRectangle&)’:expressionless:
…\addons\ofxUI\src\ofxUIRectangle.h|234|error: ‘const class ofRectangle’ has no member named ‘getMaxX’|
…\addons\ofxUI\src\ofxUIRectangle.h|234|error: ‘const class ofRectangle’ has no member named ‘getMinX’|
…\addons\ofxUI\src\ofxUIRectangle.h|235|error: ‘const class ofRectangle’ has no member named ‘getMaxY’|
…\addons\ofxUI\src\ofxUIRectangle.h|235|error: ‘const class ofRectangle’ has no member named ‘getMinY’|
…\addons\ofxUI\src\ofxUIRectangle.h||In member function ‘bool ofxUIRectangle::rInside(const ofRectangle&)’:expressionless:
…\addons\ofxUI\src\ofxUIRectangle.h|241|error: ‘const class ofRectangle’ has no member named ‘getMinX’|
…\addons\ofxUI\src\ofxUIRectangle.h|241|error: ‘const class ofRectangle’ has no member named ‘getMaxX’|
…\addons\ofxUI\src\ofxUIRectangle.h|242|error: ‘const class ofRectangle’ has no member named ‘getMinY’|
…\addons\ofxUI\src\ofxUIRectangle.h|242|error: ‘const class ofRectangle’ has no member named ‘getMaxY’|
…\addons\ofxUI\src\ofxUISlider.h||In member function ‘virtual void ofxUISlider::setParent(ofxUIWidget*)’:expressionless:
…\addons\ofxUI\src\ofxUISlider.h|469|error: ‘class ofxUIRectangle’ has no member named ‘setY’|
…\addons\ofxUI\src\ofxUI2DPad.h||In member function ‘virtual void ofxUI2DPad::setParent(ofxUIWidget*)’:expressionless:
…\addons\ofxUI\src\ofxUI2DPad.h|494|error: ‘class ofxUIRectangle’ has no member named ‘setY’|
…\addons\ofxUI\src\ofxUIToggleMatrix.h||In member function ‘virtual void ofxUIToggleMatrix::setParent(ofxUIWidget*)’:expressionless:
…\addons\ofxUI\src\ofxUIToggleMatrix.h|120|error: ‘class ofxUIRectangle’ has no member named ‘setX’|
…\addons\ofxUI\src\ofxUIToggleMatrix.h|121|error: ‘class ofxUIRectangle’ has no member named ‘setY’|
…\addons\ofxUI\src\ofxUICanvas.h|1132|error: duplicate ‘virtual’|
||=== Build finished: 13 errors, 0 warnings ===|

I don´t know what to do, I triyed every thing I thinked of…

Please Help me!!

Thank you in advance!!

Daniel Cuartas

This happens even when launching the examples? any of them?
I use this addon since OF007 and I almost never had trouble with it.

To me it seems that some of the files are not being included as some of the variables are not declared (getMaxX for example). Maybe checking the “user search path” could be a hint. Then if some folder path are missing, adding them manually.

Thank you for your reply!!

That error came up in the tutorial example, I tried in other PC’s (I’m using windows) and other examples and the same happened so I think that, in fact, I’m doing something wrong. I’m a beginner so I’m posting the process:

I open the example (allWidgets in this case)
and go to Build options:

then I make sure that the project is selected (not release or debug) in the “search directories” tab -> “Compiler” tab and then I click “add”

I select then the ofxUI’s src folder

and since ofxUI uses ofxXmlSettings, I then add the src and lib folders

Here you can see the three folders added

Then I select “add files recursively” and add again the src and lib folder added before

and that’s it, I then build the example and find the error I told you about.

I’m I doing something wrong? or not doing something that I should?

Thank you!!!

Now I just got 1 error:

…\addons\ofxUI\src\ofxUICanvas.h|1132|error: duplicate ‘virtual’|

anyone knows why this is??

nevermind… Solved!!

What was the solution for the final error? In case others have the same problem.

on the latest ofxUI releases

getMaxX
getMaxY

etc.

are not available in early versions of openFrameworks, it says that is built on 007, but that release doesn’t support those members of the ofRectangle class, I used 0073 and it worked almost fine,

the second problem I had is that on the ofxUICanvas there’s a duplicate “virtual”, just follow the error double clicking the error on the build log and delete one of the “virtual”.

and that’s it

Hey Daniel, did you ever get ofxUI to compile? There have been many updates to ofxUI in the last couple months (in the dev branch) and its best to use the master version on github for the most stable release…