examples won't compile with makefiles

Hi,

I installed the latest OF in Ubuntu following the step-by-step instructions.

If I try to compile ANY example with “make” (as opposed to with CodeBlocks), I get a lot of errors and they won’t compile.

Building them with CodeBlocks does work though.

Here’s the output from make:

$ make
echo “creating dependencies”
creating dependencies
mkdir -p obj/Release/src
g++ -march=core2 -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -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/config -I…/…/…/libs/glee/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/rtAudio/include -I…/…/…/libs/unicap/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/video pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -MM -MT obj/Release/src/main.d echo obj/Release/src/main.d | sed "s/obj\\/Release\\///" | sed "s/\.d/\.cpp/" > obj/Release/src/main.d
echo “creating dependencies”
creating dependencies
mkdir -p obj/Release/src
g++ -march=core2 -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -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/config -I…/…/…/libs/glee/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/rtAudio/include -I…/…/…/libs/unicap/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/video pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -MM -MT obj/Release/src/testApp.d echo obj/Release/src/testApp.d | sed "s/obj\\/Release\\///" | sed "s/\.d/\.cpp/" > obj/Release/src/testApp.d
echo “compiling objects”
compiling objects
echo obj/Release/src/main.o | sed “s/obj\/Release\///” | sed “s/.o/.cpp/”
src/main.cpp
mkdir -p obj/Release/src
g++ -march=core2 -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -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/config -I…/…/…/libs/glee/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/rtAudio/include -I…/…/…/libs/unicap/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/video pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -o obj/Release/src/main.o -c echo obj/Release/src/main.o | sed "s/obj\\/Release\\///" | sed "s/\.o/\.cpp/"
echo “compiling objects”
compiling objects
echo obj/Release/src/testApp.o | sed “s/obj\/Release\///” | sed “s/.o/.cpp/”
src/testApp.cpp
mkdir -p obj/Release/src
g++ -march=core2 -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -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/config -I…/…/…/libs/glee/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/rtAudio/include -I…/…/…/libs/unicap/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/video pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -o obj/Release/src/testApp.o -c echo obj/Release/src/testApp.o | sed "s/obj\\/Release\\///" | sed "s/\.o/\.cpp/"
echo “linking” bin/graphicsExample
linking bin/graphicsExample
g++ -o bin/graphicsExample obj/Release/src/main.o obj/Release/src/testApp.o -march=core2 -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -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/config -I…/…/…/libs/glee/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/rtAudio/include -I…/…/…/libs/unicap/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/video pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -L…/…/…/libs/fmodex/lib/linux -L…/…/…/libs/FreeImage/lib/linux -L…/…/…/libs/freetype/lib/linux -L…/…/…/libs/glee/lib/linux -L…/…/…/libs/gstappsink/lib/linux -L…/…/…/libs/openFrameworksCompiled/lib/linux -L…/…/…/libs/poco/lib/linux -L…/…/…/libs/rtAudio/lib/linux -L…/…/…/libs/unicap/lib/linux -s -lopenFrameworks -lfmodexp -lfmodex -lfreeimage -lfreetype -lGLee -loFappsink -lPocoFoundation -lPocoNet -lPocoUtil -lPocoXML -lRtAudio -ldcam -lunicap -lv4l2cpi -lv4l -lvid21394 pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --libs -lglut -lGL -lasound
…/…/…/libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In function tessError(unsigned int)': ofGraphics.cpp:(.text+0x3bd): undefined reference togluErrorString’
…/…/…/libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In function ofSetupScreen()': ofGraphics.cpp:(.text+0x47a): undefined reference togluPerspective’
ofGraphics.cpp:(.text+0x4d5): undefined reference to gluLookAt' ../../../libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In functionT.444’:
ofGraphics.cpp:(.text+0x2c8a): undefined reference to gluTessBeginContour' ofGraphics.cpp:(.text+0x2cc9): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x2cff): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x2d30): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x2d67): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x2d92): undefined reference togluTessEndContour’
ofGraphics.cpp:(.text+0x2da3): undefined reference to gluTessEndPolygon' ofGraphics.cpp:(.text+0x2db1): undefined reference togluDeleteTess’
…/…/…/libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In function ofEndShape(bool)': ofGraphics.cpp:(.text+0x39fa): undefined reference togluTessBeginContour’
ofGraphics.cpp:(.text+0x3a38): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x3a6e): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x3a9f): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x3ad6): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x3b02): undefined reference to gluTessEndContour' ofGraphics.cpp:(.text+0x3b13): undefined reference togluTessEndPolygon’
ofGraphics.cpp:(.text+0x3b21): undefined reference to gluDeleteTess' ../../../libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In functionofNextContour(bool)’:
ofGraphics.cpp:(.text+0x3fca): undefined reference to gluTessBeginContour' ofGraphics.cpp:(.text+0x4009): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x403f): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x4070): undefined reference togluTessVertex’
ofGraphics.cpp:(.text+0x40a4): undefined reference to gluTessVertex' ofGraphics.cpp:(.text+0x40d2): undefined reference togluTessEndContour’
…/…/…/libs/openFrameworksCompiled/lib/linux/libopenFrameworks.a(ofGraphics.o): In function ofBeginShape()': ofGraphics.cpp:(.text+0x55a2): undefined reference togluNewTess’
ofGraphics.cpp:(.text+0x55bf): undefined reference to gluTessCallback' ofGraphics.cpp:(.text+0x55dc): undefined reference togluTessCallback’
ofGraphics.cpp:(.text+0x55fa): undefined reference to gluTessCallback' ofGraphics.cpp:(.text+0x5618): undefined reference togluTessCallback’
ofGraphics.cpp:(.text+0x5636): undefined reference to gluTessCallback' ofGraphics.cpp:(.text+0x5655): undefined reference togluTessProperty’
ofGraphics.cpp:(.text+0x5683): undefined reference to gluTessProperty' ofGraphics.cpp:(.text+0x56a2): undefined reference togluTessProperty’
ofGraphics.cpp:(.text+0x56c0): undefined reference to gluTessNormal' ofGraphics.cpp:(.text+0x56d6): undefined reference togluTessBeginPolygon’
ofGraphics.cpp:(.text+0x56fa): undefined reference to `gluTessProperty’
collect2: ld returned 1 exit status
make: *** [bin/graphicsExample] Error 1

Yes, thats a known error with the last ubuntu version. It’ll be solved in 0062. Meanwhile its recomended to use the version in github where this and some other problems are already solved.

http://github.com/openframeworks/openFrameworks

Thank you