Compilation error of openFrameworks on archLinux gcc8.3

#1

Hi
I am trying to recompile openframeworks 0.10.1, I am getting a following i have run the dependencies and codec scripts and all are upto date.

compilation error of openFrameworks on archLinux gcc8.3

/home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/./gtc/packing.inl:505:37: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Wclass-memaccess]
memcpy(&Unpack, &v, sizeof(Unpack));
^
In file included from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail/func_common.inl:7,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail/func_common.hpp:426,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/common.hpp:6,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/types/ofColor.h:6,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofGraphicsBaseTypes.h:6,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/ofMesh.inl:6,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/ofMesh.h:705,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/of3dPrimitives.h:3,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/of3dGraphics.h:12,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/of3dGraphics.cpp:9:
/home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/glm/include/glm/detail/type_vec4.hpp:19:9: note: ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} declared here
struct tvec4
^~~~~
make[1]: *** [makefileCommon/compile.core.mk:238: /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/graphics/ofImage.o] Error 1
make[1]: *** Waiting for unfinished jobs…
make[1]: *** [makefileCommon/compile.core.mk:238: /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/graphics/of3dGraphics.o] Error 1
make[1]: *** [makefileCommon/compile.core.mk:238: /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/graphics/ofTessellator.o] Error 1

#2

can you use the nightly builds? I’m not sure i’ve seen this error before but just in case, If that doesn’t solve it can you open an issue on github?

#3

yes the nighty build gets installed correctly i had issue with ofxCV so i wanted to reinstall, I am gonnna try compiling this https://github.com/openframeworks/openFrameworks/tree/master/libs/openFrameworksCompiled/project

I get this error running make

/usr/include/GL/glew.h:22687:52: note: previous declaration ‘void (* __glewGetFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)’
GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212,
from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math/ofVec2f.h:6,
from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math/ofVec2f.cpp:1:
/usr/include/GL/glext.h:12099:90: error: ‘void __glewGetFragmentMaterialivSGIX(GLenum, GLenum, GLint*)’ redeclared as different kind of symbol
APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
^

In file included from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:210,
from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math/ofVec2f.h:6,
from /home/shank/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/math/ofVec2f.cpp:1:
/usr/include/GL/glew.h:22688:52: note: previous declaration ‘void (* __glewGetFragmentMaterialivSGIX)(GLenum, GLenum, const GLint*)’
GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~