Another Error when compiling compileOF.sh

#1

conflicting declaration ‘typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, const GLfloat*)’

When I run compileOF.sh I get the following error:
➜ ./compileOF.sh
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 libpulse-simple alsa gl glu glew
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 libpulse-simple alsa gl glu glew
with PKG_CONFIG_LIBDIR=
Compiling /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl/ofBufferObject.cpp
g++ -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -pthread -D_REENTRANT -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -I/usr/include/alsa -I/usr/include/libdrm -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/fmodex/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/simd -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/json/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/kiss/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/pugixml/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/tess2/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/utf8/include -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/utf8/include/utf8 -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/sound -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/communication -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/video -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/events -I/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types -MMD -MP -MF /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofBufferObject.d -MT/home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofBufferObject.o -o /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofBufferObject.o -c /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl/ofBufferObject.cpp
In file included from /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212,
from /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl/ofBufferObject.h:3,
from /home/eamoc/MyStuff/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/gl/ofBufferObject.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);

There are a lot more compile errors after this, but I am sure thay are all related. I wonder if it is a library version issue or??
Anybody have any ideas? I’m stumped!!

#2

Hi,
I am also having trouble. This is the first part of my console output, as the whole thing is too large for posting

./compileOF.sh -j2
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 /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.cpp
g++ -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/AL -I/usr/include/rtaudio -D_FORTIFY_SOURCE=2 -D__UNIX_JACK__ -D__LINUX_ALSA__ -D__LINUX_PULSE__ -I/usr/include/alsa -D_REENTRANT -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.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/dbus-1.0/include -pthread -I/home/nika/OF/openFrameworks-0.10.1/libs/fmodex/include -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/simd -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/detail -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/gtx -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/gtc -I/home/nika/OF/openFrameworks-0.10.1/libs/json/include -I/home/nika/OF/openFrameworks-0.10.1/libs/kiss/include -I/home/nika/OF/openFrameworks-0.10.1/libs/tess2/include -I/home/nika/OF/openFrameworks-0.10.1/libs/utf8/include -I/home/nika/OF/openFrameworks-0.10.1/libs/utf8/include/utf8 -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/3d -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/sound -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/app -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/math -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/graphics -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/video -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/gl -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/communication -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events -MMD -MP -MF /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofParameter.d -MT/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofParameter.o -o /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofParameter.o -c /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.cpp
Compiling /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofRectangle.cpp
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/stdint.h:9,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils/ofConstants.h:2,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events/ofEvents.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.cpp:1:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^~~~~~~

g++ -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/AL -I/usr/include/rtaudio -D_FORTIFY_SOURCE=2 -D__UNIX_JACK__ -D__LINUX_ALSA__ -D__LINUX_PULSE__ -I/usr/include/alsa -D_REENTRANT -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.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/dbus-1.0/include -pthread -I/home/nika/OF/openFrameworks-0.10.1/libs/fmodex/include -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/simd -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/detail -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/gtx -I/home/nika/OF/openFrameworks-0.10.1/libs/glm/include/glm/gtc -I/home/nika/OF/openFrameworks-0.10.1/libs/json/include -I/home/nika/OF/openFrameworks-0.10.1/libs/kiss/include -I/home/nika/OF/openFrameworks-0.10.1/libs/tess2/include -I/home/nika/OF/openFrameworks-0.10.1/libs/utf8/include -I/home/nika/OF/openFrameworks-0.10.1/libs/utf8/include/utf8 -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/3d -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/sound -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/app -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/math -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/graphics -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/video -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/gl -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/communication -I/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events -MMD -MP -MF /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofRectangle.d -MT/home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofRectangle.o -o /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/types/ofRectangle.o -c /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofRectangle.cpp
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/stdint.h:9,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils/ofConstants.h:2,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofRectangle.h:4,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofRectangle.cpp:1:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^~~~~~~

In file included from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils/ofConstants.h:212,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events/ofEvents.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.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/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils/ofConstants.h:210,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events/ofEvents.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.cpp:1:
/usr/include/GL/glew.h:18734: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/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/utils/ofConstants.h:212,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/events/ofEvents.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.h:3,
from /home/nika/OF/openFrameworks-0.10.1/libs/openFrameworks/types/ofParameter.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);

#3

used the nightly and it should work