Its ugly workaround, but can helps. Open your <EGL/eglplatform.h> in text editor and after strings: #include <X11/Xlib.h> #include <X11/Xutil.h> add following strings: #undef None #undef CursorShape