Cannot Compile OF, errors on of3dPrimitives and conflicting GL / glew declarations

Greetings! Trying to install OF 0.10.0 on a Ubuntu 18.04.1 machine.

I follow the normal install process…

  • Downloaded of_v0.10.0_linux64gcc6_release
  • Ran ./install_dependencies.sh … all good.
  • I then run ./compileOF.sh and it crashes out when compiling of3dPrimitives with the following.

Might be something conflicting with QT4 / openGL / glew happening? I tried purging / reinstalling with the same errors. Anyone know anything more about this? :slight_smile:

HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 
with PKG_CONFIG_LIBDIR=
Compiling ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp
g++ -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I~/openFrameworks/libs/fmodex/include -I~/openFrameworks/libs/glm/include -I~/openFrameworks/libs/glm/include/glm -I~/openFrameworks/libs/glm/include/glm/simd -I~/openFrameworks/libs/glm/include/glm/gtx -I~/openFrameworks/libs/glm/include/glm/gtc -I~/openFrameworks/libs/glm/include/glm/detail -I~/openFrameworks/libs/json/include -I~/openFrameworks/libs/kiss/include -I~/openFrameworks/libs/pugixml/include -I~/openFrameworks/libs/tess2/include -I~/openFrameworks/libs/utf8/include -I~/openFrameworks/libs/utf8/include/utf8 -I~/openFrameworks/libs/openFrameworks -I~/openFrameworks/libs/openFrameworks/3d -I~/openFrameworks/libs/openFrameworks/gl -I~/openFrameworks/libs/openFrameworks/video -I~/openFrameworks/libs/openFrameworks/sound -I~/openFrameworks/libs/openFrameworks/graphics -I~/openFrameworks/libs/openFrameworks/events -I~/openFrameworks/libs/openFrameworks/communication -I~/openFrameworks/libs/openFrameworks/math -I~/openFrameworks/libs/openFrameworks/app -I~/openFrameworks/libs/openFrameworks/types -I~/openFrameworks/libs/openFrameworks/utils  -MMD -MP -MF ~/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.d -MT~/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o -o ~/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o -c ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12066:105: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, const GLfloat*)'
 GLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16092:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, GLfloat*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12068:103: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum, GLenum, const GLint*)'
 FNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16094:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum, GLenum, GLint*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12070:96: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)(GLenum, const GLfloat*)'
 NTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16088:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)(GLenum, GLfloat*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, GLfloat* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12072:94: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)(GLenum, const GLint*)'
 IENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16090:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)(GLenum, GLint*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, GLint* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12079:104: error: conflicting declaration 'typedef void (* PFNGLGETFRAGMENTMATERIALFVSGIXPROC)(GLenum, GLenum, GLfloat*)'
 NGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16101:28: note: previous declaration as 'typedef void (* PFNGLGETFRAGMENTMATERIALFVSGIXPROC)(GLenum, GLenum, const GLfloat*)'
 typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* data);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12080:102: error: conflicting declaration 'typedef void (* PFNGLGETFRAGMENTMATERIALIVSGIXPROC)(GLenum, GLenum, GLint*)'
 PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:16102:28: note: previous declaration as 'typedef void (* PFNGLGETFRAGMENTMATERIALIVSGIXPROC)(GLenum, GLenum, const GLint*)'
 typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* data);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12083:74: error: 'void __glewFragmentColorMaterialSGIX(GLenum, GLenum)' redeclared as different kind of symbol
 GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum face, GLenum mode);
                                                                          ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19341:52: note: previous declaration 'void (* __glewFragmentColorMaterialSGIX)(GLenum, GLenum)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALSGIXPROC __glewFragmentColorMaterialSGIX;
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12084:84: error: 'void __glewFragmentLightfSGIX(GLenum, GLenum, GLfloat)' redeclared as different kind of symbol
 void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
                                                                              ^
... 
                                                                          ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19348:45: note: previous declaration 'void (* __glewFragmentLightiSGIX)(GLenum, GLenum, GLint)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTISGIXPROC __glewFragmentLightiSGIX;
                                             ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12087:91: error: 'void __glewFragmentLightivSGIX(GLenum, GLenum, const GLint*)' redeclared as different kind of symbol
 IENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19349:46: note: previous declaration 'void (* __glewFragmentLightivSGIX)(GLenum, GLenum, GLint*)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVSGIXPROC __glewFragmentLightivSGIX;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12088:75: error: 'void __glewFragmentLightModelfSGIX(GLenum, GLfloat)' redeclared as different kind of symbol
 GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum pname, GLfloat param);
                                                                           ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19342:50: note: previous declaration 'void (* __glewFragmentLightModelfSGIX)(GLenum, GLfloat)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFSGIXPROC __glewFragmentLightModelfSGIX;
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12089:84: error: 'void __glewFragmentLightModelfvSGIX(GLenum, const GLfloat*)' redeclared as different kind of symbol
 void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19343:51: note: previous declaration 'void (* __glewFragmentLightModelfvSGIX)(GLenum, GLfloat*)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVSGIXPROC __glewFragmentLightModelfvSGIX;
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12090:73: error: 'void __glewFragmentLightModeliSGIX(GLenum, GLint)' redeclared as different kind of symbol
 GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum pname, GLint param);
                                                                         ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19344:50: note: previous declaration 'void (* __glewFragmentLightModeliSGIX)(GLenum, GLint)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELISGIXPROC __glewFragmentLightModeliSGIX;
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12091:82: error: 'void __glewFragmentLightModelivSGIX(GLenum, const GLint*)' redeclared as different kind of symbol
 I void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19345:51: note: previous declaration 'void (* __glewFragmentLightModelivSGIX)(GLenum, GLint*)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVSGIXPROC __glewFragmentLightModelivSGIX;
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12092:86: error: 'void __glewFragmentMaterialfSGIX(GLenum, GLenum, GLfloat)' redeclared as different kind of symbol
 id APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19350:48: note: previous declaration 'void (* __glewFragmentMaterialfSGIX)(GLenum, GLenum, GLfloat)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFSGIXPROC __glewFragmentMaterialfSGIX;
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12093:95: error: 'void __glewFragmentMaterialfvSGIX(GLenum, GLenum, const GLfloat*)' redeclared as different kind of symbol
 RY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19351:49: note: previous declaration 'void (* __glewFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFVSGIXPROC __glewFragmentMaterialfvSGIX;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12094:84: error: 'void __glewFragmentMaterialiSGIX(GLenum, GLenum, GLint)' redeclared as different kind of symbol
 void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19352:48: note: previous declaration 'void (* __glewFragmentMaterialiSGIX)(GLenum, GLenum, GLint)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALISGIXPROC __glewFragmentMaterialiSGIX;
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12095:93: error: 'void __glewFragmentMaterialivSGIX(GLenum, GLenum, const GLint*)' redeclared as different kind of symbol
 NTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19353:49: note: previous declaration 'void (* __glewFragmentMaterialivSGIX)(GLenum, GLenum, const GLint*)'
 GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIVSGIXPROC __glewFragmentMaterialivSGIX;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12096:90: error: 'void __glewGetFragmentLightfvSGIX(GLenum, GLenum, GLfloat*)' redeclared as different kind of symbol
 PIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19354:49: note: previous declaration 'void (* __glewGetFragmentLightfvSGIX)(GLenum, GLenum, GLfloat*)'
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVSGIXPROC __glewGetFragmentLightfvSGIX;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12097:88: error: 'void __glewGetFragmentLightivSGIX(GLenum, GLenum, GLint*)' redeclared as different kind of symbol
  APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19355:49: note: previous declaration 'void (* __glewGetFragmentLightivSGIX)(GLenum, GLenum, GLint*)'
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVSGIXPROC __glewGetFragmentLightivSGIX;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12098:92: error: 'void __glewGetFragmentMaterialfvSGIX(GLenum, GLenum, GLfloat*)' redeclared as different kind of symbol
 ENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19356:52: note: previous declaration 'void (* __glewGetFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)'
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX;
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12099:90: error: 'void __glewGetFragmentMaterialivSGIX(GLenum, GLenum, GLint*)' redeclared as different kind of symbol
 PIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
                                                                              ^
In file included from ~/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from ~/openFrameworks/libs/openFrameworks/3d/ofMesh.h:6,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.h:3,
                 from ~/openFrameworks/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19357:52: note: previous declaration 'void (* __glewGetFragmentMaterialivSGIX)(GLenum, GLenum, const GLint*)'
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX;
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
makefileCommon/compile.core.mk:238: recipe for target '~/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o' failed
make[1]: *** [~/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o] Error 1
makefileCommon/compile.core.mk:212: recipe for target 'Debug' failed
make: *** [Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

I just ran into the same problem, except from git sources. What GPU do you have? I’m using an Intel card and wondering if it’s related to the Mesa drivers install.

1 Like

i don-t think this is relate to the diver but some other people havereported this problem and that it was related to extra repositories installed in the system

1 Like

there’s a solution:

5 Likes

yes this is now solved in github (patch-release branch) and will be too since tomorrow’s nightly builds

1 Like

Just a note that this seems to still be an issue, fixable via the same alteration to ofConstants.h.

I’m on a machine with Ubuntu 18.04 and a download of the Linux, gcc6+ release available on the oF website.

2 Likes

Hi! Catching up on this thread - appreciate the updates and patches. all good now!

The original post it was installed on a clean Ubuntu 18.0.4 - @grimus Intel UHD 620 GPU if that helps.

Thanks !, This also solved for me. ( Ubuntu 18.04 / OF 0.10.1)

I ran into the same thing, Updated from 0.10.0 to 0.10.1, which didn’t work. Your fix of commenting out line 212 did.

Same issue here on ubuntu 18.10 no extra repo… Line 212 fix my built.

Had a similar problem on ElementaryOS (juno)
GCC 7.4

Commenting out line 212 did the trick, thanks!

hello, I’ve ubuntu 18.04 with gcc 7.4 and OF 0.10.1
I commented the line 212, but I still get an error :

HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
Done!
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
Compiling /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofFmodSoundPlayer.cpp
g++ -O3 -march=native -mtune=native -DNDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/fmodex/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/simd -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/json/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/kiss/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/pugixml/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/tess2/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include/utf8 -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/events -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/communication -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/video -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math  -MMD -MP -MF /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofFmodSoundPlayer.d -MT/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofFmodSoundPlayer.o -o /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofFmodSoundPlayer.o -c /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofFmodSoundPlayer.cpp
Compiling /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
g++ -O3 -march=native -mtune=native -DNDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/fmodex/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/simd -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/json/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/kiss/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/pugixml/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/tess2/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include/utf8 -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/events -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/communication -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/video -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math  -MMD -MP -MF /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofOpenALSoundPlayer.d -MT/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofOpenALSoundPlayer.o -o /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofOpenALSoundPlayer.o -c /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
Compiling /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofSoundBaseTypes.cpp
g++ -O3 -march=native -mtune=native -DNDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/fmodex/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/simd -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/json/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/kiss/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/pugixml/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/tess2/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include/utf8 -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/events -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/communication -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/video -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math  -MMD -MP -MF /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBaseTypes.d -MT/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBaseTypes.o -o /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBaseTypes.o -c /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofSoundBaseTypes.cpp
Compiling /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofSoundBuffer.cpp
g++ -O3 -march=native -mtune=native -DNDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/fmodex/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/simd -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/json/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/kiss/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/pugixml/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/tess2/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/utf8/include/utf8 -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/events -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/communication -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/video -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl -I/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math  -MMD -MP -MF /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBuffer.d -MT/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBuffer.o -o /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBuffer.o -c /home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound/ofSoundBuffer.cpp
makefileCommon/compile.core.mk:238: recipe for target '/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBaseTypes.o' failed
makefileCommon/compile.core.mk:238: recipe for target '/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofSoundBuffer.o' failed
makefileCommon/compile.core.mk:238: recipe for target '/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofFmodSoundPlayer.o' failed
makefileCommon/compile.core.mk:238: recipe for target '/home/cedric/soft/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofOpenALSoundPlayer.o' failed
makefileCommon/compile.core.mk:204: recipe for target 'Release' failed
there has been a problem compiling Release OF library
please report this problem in the forums

I made a mistake, I edited makefileCommon/compile.core.mk instead. now it works!

1 Like

I just ran into this issue using ubuntu 18.04 and the current OF install package. Your solution of commenting out line 212 of ofConstants.h “#include <GL/glext.h>” worked for me. Thanks!