danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

Some major problems compiling plugin on ubuntu 18.04 with nvidia drivers #72

Closed nanu-c closed 5 years ago

nanu-c commented 5 years ago
In file included from /home/nanu/src/of/libs/openFrameworks/utils/ofConstants.h:212:0,
                 from /home/nanu/src/of/libs/openFrameworks/events/ofEvents.h:3,
                 from /home/nanu/src/of/addons/ofxMidi/src/ofxMidiTimecode.h:17,
                 from /home/nanu/src/of/addons/ofxMidi/src/ofxMidiTimecode.cpp:13:
/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/nanu/src/of/libs/openFrameworks/utils/ofConstants.h:210:0,
                 from /home/nanu/src/of/libs/openFrameworks/events/ofEvents.h:3,
                 from /home/nanu/src/of/addons/ofxMidi/src/ofxMidiTimecode.h:17,
                 from /home/nanu/src/of/addons/ofxMidi/src/ofxMidiTimecode.cpp:13:
/usr/include/GL/glew.h:19356:52: note: previous declaration ‘void (* __glewGetFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)’
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX;
danomatika commented 5 years ago

This is a problem with OpenFrameworks and not ofxMidi. It just happens that the header is included through an ofxMidi header. If you have problems compiling any project, with r without ofxMidi, it's definitely an OF problem. If you get this only with a project using ofxMidi, then it may be an ofxMidi problem

nanu-c commented 5 years ago

oki, the current release is not compatible with the mesa version for latest nvidia-drivers for Xorg, but latest git works. And yes, it was indeed a failure not provoked by ofxMidi. Thanks for the response