Closed vanfanel closed 3 years ago
@drfiemost After providing my own libepoxy build (with no X11 dependencies) it seems that the buildsystem is failing to find OpenGL:
-- Could NOT find OpenGL (missing: OPENGL_glx_LIBRARY)
-- Found LibEpoxy 1.5.8
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_gl_LIBRARY (ADVANCED)
linked by target "hurrican" in directory /home/pi/src/Hurrican/Hurrican
It seems that OpenGL is supported via both GLX and GLVD on the CMakeLists.txt, right?
@drfiemost Ok, got it to build after removing this line from CMakeLists.txt:
Maybe this specific GLX find script can be removed as it breaks modern GLVND-based builds?
@vanfanel In fact it builds fine without explicitly adding OpenGL. Only the EGL port still requires it, maybe it should be converted into using libepoxy? I'll try to fix the CMakeFile in the meanwhile.
@drfiemost I don't understand well. Is it possible to build against EGL instead of libepoxy? (ie: is it possible to build without libepoxy on the system?)
@vanfanel No, and I think the EGL target is no longer useful. Libepoxy should handle the abstraction over GLX/EGL if I get it correctly.
@drfiemost Ah! I understand now, thanks. Well, a fixed CMakeLists.txt for now is a good idea :)
Should be ok now
Hi there again, @drfiemost I am trying to build Hurrican on the Raspberry Pi 4 without X11. Having SDL2 / OpenGL programs working without X11 is possible, since SDL2 runs perfectly well on KMSDRM, with working 3D GLES and OpenGL (via GLVND instead of GLX) acceleration. I have dozens of games running that way, like SDLPop, Scummvm, DoomRetro, etc
It seems that Hurrican doesn't directly require any GLX/X11 stuff directly, but it uses libEpoxy which in turn has HUGE X11 dependencies on Debian/Ubuntu:
So, is libEpoxy mandatory? In that case, what would be the course of action? Maybe building libepoxy from sources without X11 support if that's possible at all?