Can't build on xubuntu 18.04


#1

I have tried getting OF up and running on ubuntu 18.04 to no avail. I initially followed the directions here:
https://openframeworks.cc/setup/linux-install/

when that failed I tried the master branch of the git repo following these directions:

install_dependencies succeeds
for the git version install_libs.sh also succeeds

but when I try to make OF itself I get multiple define errors.

Here’s the output when I built for the git master branch:

user@user-Inspiron-13-7378:~/dev/openFrameworks/apps/projectGenerator/commandLine$ make
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 OF library for Release
make[1]: Entering directory ‘/home/user/dev/openFrameworks/libs/openFrameworksCompiled/project’
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/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.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/user/dev/openFrameworks/libs/fmodex/include -I/home/user/dev/openFrameworks/libs/glm/include -I/home/user/dev/openFrameworks/libs/glm/include/glm -I/home/user/dev/openFrameworks/libs/glm/include/glm/gtx -I/home/user/dev/openFrameworks/libs/glm/include/glm/detail -I/home/user/dev/openFrameworks/libs/glm/include/glm/simd -I/home/user/dev/openFrameworks/libs/glm/include/glm/gtc -I/home/user/dev/openFrameworks/libs/json/include -I/home/user/dev/openFrameworks/libs/kiss/include -I/home/user/dev/openFrameworks/libs/tess2/include -I/home/user/dev/openFrameworks/libs/utf8/include -I/home/user/dev/openFrameworks/libs/utf8/include/utf8 -I/home/user/dev/openFrameworks/libs/openFrameworks -I/home/user/dev/openFrameworks/libs/openFrameworks/communication -I/home/user/dev/openFrameworks/libs/openFrameworks/video -I/home/user/dev/openFrameworks/libs/openFrameworks/events -I/home/user/dev/openFrameworks/libs/openFrameworks/types -I/home/user/dev/openFrameworks/libs/openFrameworks/app -I/home/user/dev/openFrameworks/libs/openFrameworks/gl -I/home/user/dev/openFrameworks/libs/openFrameworks/math -I/home/user/dev/openFrameworks/libs/openFrameworks/utils -I/home/user/dev/openFrameworks/libs/openFrameworks/sound -I/home/user/dev/openFrameworks/libs/openFrameworks/graphics -I/home/user/dev/openFrameworks/libs/openFrameworks/3d -MMD -MP -MF /home/user/dev/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/communication/ofSerial.d -MT/home/user/dev/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/communication/ofSerial.o -o /home/user/dev/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/communication/ofSerial.o -c /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12066:105: error: conflicting declaration ‘typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, const GLfloat*)’
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12068:103: error: conflicting declaration ‘typedef void (* PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum, GLenum, const GLint*)’
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12070:96: error: conflicting declaration ‘typedef void (* PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)(GLenum, const GLfloat*)’
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12072:94: error: conflicting declaration ‘typedef void (* PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)(GLenum, const GLint*)’
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12079:104: error: conflicting declaration ‘typedef void (* PFNGLGETFRAGMENTMATERIALFVSGIXPROC)(GLenum, GLenum, GLfloat*)’
typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12080:102: error: conflicting declaration ‘typedef void (* PFNGLGETFRAGMENTMATERIALIVSGIXPROC)(GLenum, GLenum, GLint*)’
typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19341:52: note: previous declaration ‘void (* __glewFragmentColorMaterialSGIX)(GLenum, GLenum)’
GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALSGIXPROC __glewFragmentColorMaterialSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12084:84: error: ‘void __glewFragmentLightfSGIX(GLenum, GLenum, GLfloat)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19346:45: note: previous declaration ‘void (* __glewFragmentLightfSGIX)(GLenum, GLenum, GLfloat)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFSGIXPROC __glewFragmentLightfSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12085:93: error: ‘void __glewFragmentLightfvSGIX(GLenum, GLenum, const GLfloat*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19347:46: note: previous declaration ‘void (
__glewFragmentLightfvSGIX)(GLenum, GLenum, GLfloat*)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFVSGIXPROC __glewFragmentLightfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12086:82: error: ‘void __glewFragmentLightiSGIX(GLenum, GLenum, GLint)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19348:45: note: previous declaration ‘void (* __glewFragmentLightiSGIX)(GLenum, GLenum, GLint)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTISGIXPROC __glewFragmentLightiSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12087:91: error: ‘void __glewFragmentLightivSGIX(GLenum, GLenum, const GLint*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19349:46: note: previous declaration ‘void (
__glewFragmentLightivSGIX)(GLenum, GLenum, GLint*)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVSGIXPROC __glewFragmentLightivSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19342:50: note: previous declaration ‘void (* __glewFragmentLightModelfSGIX)(GLenum, GLfloat)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFSGIXPROC __glewFragmentLightModelfSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12089:84: error: ‘void __glewFragmentLightModelfvSGIX(GLenum, const GLfloat*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19343:51: note: previous declaration ‘void (
__glewFragmentLightModelfvSGIX)(GLenum, GLfloat*)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVSGIXPROC __glewFragmentLightModelfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19344:50: note: previous declaration ‘void (* __glewFragmentLightModeliSGIX)(GLenum, GLint)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELISGIXPROC __glewFragmentLightModeliSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12091:82: error: ‘void __glewFragmentLightModelivSGIX(GLenum, const GLint*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19345:51: note: previous declaration ‘void (
__glewFragmentLightModelivSGIX)(GLenum, GLint*)’
GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVSGIXPROC __glewFragmentLightModelivSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12092:86: error: ‘void __glewFragmentMaterialfSGIX(GLenum, GLenum, GLfloat)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19350:48: note: previous declaration ‘void (* __glewFragmentMaterialfSGIX)(GLenum, GLenum, GLfloat)’
GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFSGIXPROC __glewFragmentMaterialfSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12093:95: error: ‘void __glewFragmentMaterialfvSGIX(GLenum, GLenum, const GLfloat*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12094:84: error: ‘void __glewFragmentMaterialiSGIX(GLenum, GLenum, GLint)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19352:48: note: previous declaration ‘void (* __glewFragmentMaterialiSGIX)(GLenum, GLenum, GLint)’
GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALISGIXPROC __glewFragmentMaterialiSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12095:93: error: ‘void __glewFragmentMaterialivSGIX(GLenum, GLenum, const GLint*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/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 /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12096:90: error: ‘void __glewGetFragmentLightfvSGIX(GLenum, GLenum, GLfloat*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19354:49: note: previous declaration ‘void (
__glewGetFragmentLightfvSGIX)(GLenum, GLenum, GLfloat*)’
GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVSGIXPROC __glewGetFragmentLightfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12097:88: error: ‘void __glewGetFragmentLightivSGIX(GLenum, GLenum, GLint*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19355:49: note: previous declaration ‘void (
__glewGetFragmentLightivSGIX)(GLenum, GLenum, GLint*)’
GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVSGIXPROC __glewGetFragmentLightivSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:212:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glext.h:12098:92: error: ‘void __glewGetFragmentMaterialfvSGIX(GLenum, GLenum, GLfloat*)’ redeclared as different kind of symbol
GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat params);
^
In file included from /home/user/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:210:0,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.h:4,
from /home/user/dev/openFrameworks/libs/openFrameworks/communication/ofSerial.cpp:1:
/usr/include/GL/glew.h:19356:52: note: previous declaration ‘void (
__glewGetFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)’
GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


#2

I solved this by making sure all the library dependencies were from official 18.04 repos. I had a few PPAs in there and I had to downgrade the libraries coming from the PPAs. I am using the master branch.


#3

I had the same problem on vanilla Ubuntu. I had the padoka PPA installed, and had to remove it for OF to successfully compile.