Compile guiExample problem

#1

Linking bin/guiExample for linux64
g++ -o bin/guiExample obj/linux64/Release/src/ofApp.o obj/linux64/Release/src/main.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxToggle.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxButton.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxGuiGroup.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxInputField.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxSlider.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxBaseGui.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxPanel.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxLabel.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxColorPicker.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/addons/obj/linux64/Release/ofxGui/src/ofxSliderGroup.o /home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a -Wl,-rpath=./libs:./bin/libs -Wl,–as-needed -Wl,–gc-sections -fuse-ld=gold -L/home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/fmodex/lib/linux64/ -lfmodex /home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/kiss/lib/linux64/libkiss.a /home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/tess2/lib/linux64/libtess2.a -L/usr/local/lib -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw3 -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama -lrtaudio
/home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofXml.o):ofXml.cpp:function ofXml::appendChild(ofXml&&): error: undefined reference to ‘pugi::xml_node::append_move(pugi::xml_node const&)’
/home/guohongbin/of_v0.10.1_linux64gcc4_release/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofXml.o):ofXml.cpp:function ofXml::prependChild(ofXml&&): error: undefined reference to ‘pugi::xml_node::prepend_move(pugi::xml_node const&)’
collect2: error: ld returned 1 exit status
make[1]: *** [bin/guiExample] Error 1
make[1]: Leaving directory `/home/guohongbin/of_v0.10.1_linux64gcc4_release/examples/gui/guiExample’
make: *** [Release] Error 2

but have Some examples can be compiled normally

#2

did you open the examples with the project generator? which addons do you see in the “addons” field?

#3

I think you are using the gcc4 version of openFrameworks but that’s quite old. try checking the version you have, in a terminal type:

gcc -v

if you have 6 or more (which is the most probable) you should be using the gcc6 version of openFrameworks

#4

in the main below examples

#5

Downloaded is gcc4

#6

Downloaded is liunx gcc4 version