So, I checked and actually it was using default OpenGL - it seems a default libfsfml packages configuration on Raspbian.
I am trying to compile sfml with OpenGL ES, but for now it is crashing:
[ 16%] Built target sfml-system
Scanning dependencies of target sfml-window
[ 17%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
In file included from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/GlContext.cpp:73:
/tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.hpp:165:12: error: ‘XVisualInfo’ does not name a type
static XVisualInfo selectBestVisual(::Display* display, unsigned int bitsPerPixel, const ContextSettings& settings);
^~~~~~~~~~~
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/build.make:102: src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:176: src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I found XVisualInfo in several places in system libs:
/usr/include/X11/Xutil.h:} XVisualInfo;
/usr/include/X11/Xutil.h:extern XVisualInfo *XGetVisualInfo(
/usr/include/X11/Xutil.h: XVisualInfo* /* vinfo_template */,
/usr/include/X11/Xutil.h: XVisualInfo* /* vinfo_return */
/usr/include/GL/glx.h:extern XVisualInfo* glXChooseVisual( Display *dpy, int screen,
/usr/include/GL/glx.h:extern GLXContext glXCreateContext( Display *dpy, XVisualInfo *vis,
/usr/include/GL/glx.h:extern GLXPixmap glXCreateGLXPixmap( Display *dpy, XVisualInfo *visual,
/usr/include/GL/glx.h:extern int glXGetConfig( Display *dpy, XVisualInfo *visual,
/usr/include/GL/glx.h:extern XVisualInfo *glXGetVisualFromFBConfig( Display *dpy,
/usr/include/GL/glx.h:typedef XVisualInfo * (* PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
/usr/include/GL/glxext.h:typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
/usr/include/GL/glxext.h:XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
/usr/include/GL/glxext.h:typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
/usr/include/GL/glxext.h:GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
/usr/include/GL/glxext.h:typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
/usr/include/GL/glxext.h:typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
/usr/include/GL/glxext.h:XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
/usr/include/GL/glxext.h:GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
/usr/include/glvnd/libglxabi.h: * for the XVisualInfo or GLXFBConfig that the context is created from.
but nothing in the special Raspberry drivers.
Including X11/Xutil.h results with:
[ 17%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowImpl.cpp.o
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/EglContext.cpp.o
In file included from /usr/include/X11/Xlib.h:44,
from /usr/include/X11/Xutil.h:53,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EGLCheck.hpp:34,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.hpp:33,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.cpp:29:
/tmp/libsfml-2.5.1+dfsg/include/SFML/Window/WindowStyle.hpp:40:9: error: expected identifier before numeric constant
None = 0, ///< No border / title bar (this flag and all others are mutually exclusive)
^~~~
/tmp/libsfml-2.5.1+dfsg/include/SFML/Window/WindowStyle.hpp:40:9: error: expected ‘}’ before numeric constant
In file included from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/Unix/CursorImpl.hpp:34,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/CursorImpl.hpp:39,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/WindowImpl.hpp:35,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.cpp:30:
/tmp/libsfml-2.5.1+dfsg/include/SFML/Window/WindowStyle.hpp:39:5: note: to match this ‘{’
{
^
In file included from /usr/include/X11/Xlib.h:44,
from /usr/include/X11/Xutil.h:53,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EGLCheck.hpp:34,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.hpp:33,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.cpp:29:
/tmp/libsfml-2.5.1+dfsg/include/SFML/Window/WindowStyle.hpp:40:9: error: expected unqualified-id before numeric constant
None = 0, ///< No border / title bar (this flag and all others are mutually exclusive)
^~~~
In file included from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/Unix/CursorImpl.hpp:34,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/CursorImpl.hpp:39,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/WindowImpl.hpp:35,
from /tmp/libsfml-2.5.1+dfsg/src/SFML/Window/EglContext.cpp:30:
/tmp/libsfml-2.5.1+dfsg/include/SFML/Window/WindowStyle.hpp:50:1: error: expected declaration before ‘}’ token
} // namespace sf
^
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/build.make:271: src/SFML/Window/CMakeFiles/sfml-window.dir/EglContext.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:176: src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I will keep looking, but any help appreciated.