I was following the steps given in this
post to install SFML 2.3.2 on our cluster running CentOS 7 with the latest updates.
Everything ran as expected until the
make command returned this error:
[root@localhost build]# make
[ 17%] Built target sfml-system
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
In file included from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:123:3: error: conflicting declaration ‘typedef struct GLXHyperpipeNetworkSGIX GLXHyperpipeNetworkSGIX’
} GLXHyperpipeNetworkSGIX;
^
In file included from /usr/include/GL/glx.h:333:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:36,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/usr/include/GL/glxext.h:764:3: error: ‘GLXHyperpipeNetworkSGIX’ has a previous declaration as ‘typedef struct GLXHyperpipeNetworkSGIX GLXHyperpipeNetworkSGIX’
} GLXHyperpipeNetworkSGIX;
^
In file included from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:129:3: error: conflicting declaration ‘typedef struct GLXHyperpipeConfigSGIX GLXHyperpipeConfigSGIX’
} GLXHyperpipeConfigSGIX;
^
In file included from /usr/include/GL/glx.h:333:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:36,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/usr/include/GL/glxext.h:770:3: error: ‘GLXHyperpipeConfigSGIX’ has a previous declaration as ‘typedef struct GLXHyperpipeConfigSGIX GLXHyperpipeConfigSGIX’
} GLXHyperpipeConfigSGIX;
^
In file included from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:134:3: error: conflicting declaration ‘typedef struct GLXPipeRect GLXPipeRect’
} GLXPipeRect;
^
In file included from /usr/include/GL/glx.h:333:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:36,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/usr/include/GL/glxext.h:775:3: error: ‘GLXPipeRect’ has a previous declaration as ‘typedef struct GLXPipeRect GLXPipeRect’
} GLXPipeRect;
^
In file included from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:138:3: error: conflicting declaration ‘typedef struct GLXPipeRectLimits GLXPipeRectLimits’
} GLXPipeRectLimits;
^
In file included from /usr/include/GL/glx.h:333:0,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxExtensions.hpp:36,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/Unix/GlxContext.hpp:32,
from /home/user/Desktop/SFML-2.3.2/src/SFML/Window/GlContext.cpp:47:
/usr/include/GL/glxext.h:779:3: error: ‘GLXPipeRectLimits’ has a previous declaration as ‘typedef struct GLXPipeRectLimits GLXPipeRectLimits’
} GLXPipeRectLimits;
^
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2
How could this issue be solved? Thanks.