ofxPoint2f in ofxGui

Hi, i’m tring ofxGui addons.
i am on ubuntu, and i’m tring to compile examples with makefile.

i’ve downloaded ofxGui from git, copied src files in OFPATH/addons/ofxGui/src and example in OFPATH/apps/myApps/ofxGuiExample.
added in addons.make: ofxXmlSettings, ofxVectorMath, ofxDirList, ofxGui

but when i launch make i get this error:

‘ofxPoint2f’ has not been declared

even if my g++ call seems to be ok:
there is -I…/…/…/addons/ofxVectorMath/src and this should be ok

g++ -c -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DOF_USING_GTK -DOF_USING_MPG123 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -I…/…/…/libs/assimp/include -I…/…/…/libs/assimp/include/Compiler -I…/…/…/libs/cairo/include -I…/…/…/libs/cairo/include/libpng15 -I…/…/…/libs/cairo/include/cairo -I…/…/…/libs/cairo/include/pixman-1 -I…/…/…/libs/fmodex/include -I…/…/…/libs/freetype/include -I…/…/…/libs/freetype/include/freetype2 -I…/…/…/libs/freetype/include/freetype2/freetype -I…/…/…/libs/freetype/include/freetype2/freetype/internal -I…/…/…/libs/freetype/include/freetype2/freetype/internal/services -I…/…/…/libs/freetype/include/freetype2/freetype/config -I…/…/…/libs/glew/include -I…/…/…/libs/glew/include/GL -I…/…/…/libs/kiss/include -I…/…/…/libs/portaudio/include -I…/…/…/libs/rtAudio/include -I…/…/…/libs/tess2/include -I…/…/…/libs/videoInput/include -I…/…/…/libs/poco/include -I…/…/…/libs/glu/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/gl -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/types -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/math -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/video -I…/…/…/libs/openFrameworks/3d -I…/…/…/addons/ofxXmlSettings/libs -I…/…/…/addons/ofxVectorMath/libs -I…/…/…/addons/ofxDirList/libs -I…/…/…/addons/ofxGui/libs -I…/…/…/addons/ofxXmlSettings/src -I…/…/…/addons/ofxVectorMath/src -I…/…/…/addons/ofxDirList/src -I…/…/…/addons/ofxGui/src -I…/…/…/addons/ofxXmlSettings/libs -MMD -MP -MFobj/i686Release/./src/testApp.d -MTobj/i686Release/./src/testApp.d -oobj/i686Release/./src/testApp.o -c src/testApp.cpp

i don’t know what could it be, i have poor experience in compiling cpp.
some advice?

this is my complete make output: http://pastebin.com/b3YST006

you receive that error because ofxVectormath is deprecated. Open ofxVectorMath,h ,if you want to use it comment this two lines :

#warning ofxVectorMath has been deprecated.
#warning Remove all references to ofxVectorMath.h and use ofVectorMath instead

the same in ofxPoint2f.h and ofxVec2f.h, ofxVec3f, ect…

another solution change all the ofxPoint2f to ofPoint2f and so on with all code referencing to ofxVectorMath…but i don’t know if it make sense…

ok thanks i’ve done all the replacement with grep and sed:

grep -rl ‘#warning’ ./ | xargs sed -i ‘s/\#warning///#warning/g’

there are no more warnings but there error: ‘ofxPoint2f’ was not declared in this scope is still there…

EDIT: got the first problem:
EDIT: there are some few problems:

see the last answer

#include “ofxPoint2f.h”

I think you can add this “#include” in ofxVectorMat.h. After it should be fine. I have already done this for other old addons which required ofxVectorMath. Post in the forum if you solve or have any other trouble. :slight_smile:

so the few problems:

in ofxVectorMath.h 1 this line is missing #include "ofxPoint2f.h"

in ofxGuiTypes.h at line 71 in enum declaration kofxGui_Object_Label, is missing

in ofxGui.cpp at line 96 replaced w = glutGet(GLUT_WINDOW_WIDTH); with w = ofGetWidth(); and same with height

i think it’s all…
mayebe in the repo there is an old version of ofxgui (i downloaded it from https://github.com/bilderbuchi/ofxGui )

but why? i think it is quite easy to use and i found it in some cool project like CCV…
what gui-addons are OF folks using more?

Hi,

yes, i just run into this gui that seems really good.
Had to change come code, but it is working now, with vect2f, etc.
Anybody interested, i can upload the addon working in of 007…

www.tangiblex.net

[quote=“nkint, post:5, topic:8675”]mayebe in the repo there is an old version of ofxgui (i downloaded it from https://github.com/bilderbuchi/ofxGui )
[/quote]
The addon is not maintained, I originally put it there as a convenient method to access this addon (which was written by someone else), because before you could only find it by hunting through the forums.

take a look here: http://ofxaddons.com/#gui
most used as far as i know are ofxcontrolpanel by theo, ofxsimpleguitoo by memo, which I think is also not maintained anymore, and is now contained in MSALibs. ofxhgui is another gui addon by bernard, which is quite new and very feature-rich.

Hi,

just wanted to say thank you to you, creating this good gui.
I am implementing it, changing a bit some things, and updating it to work in of 007.
So asap, i will upload a new version, to ba able to work with it.

thank you again.

miguel.

I did not create it, stivo (another user) did. :slight_smile:
If you change it and update it, please do it in a proper way, by forking it on github before, and working on that copy. This will reduce duplication, and make updating much more easy. look here for how stuff works: https://github.com/openframeworks/openFrameworks/wiki/openFrameworks-git-workflow

Also, be aware that bakercp made some changes, maybe some sutff you need is already done:
https://github.com/bilderbuchi/ofxGui/network