Closed computermouth closed 2 years ago
Actually, now that I'm looking at it, I see that it's just the examples failing to compile thus far
I expect something like
elseif (${PLATFORM} MATCHES "DRM")
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
May be required in examples/CMakeLists.txt
along with the android and web example filters.
Confirmed, solved with the following:
elseif (${PLATFORM} STREQUAL "DRM")
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c)
I'd make a PR, but I have a few questions.
GRAPHICS
instead of PLATFORM
, because the DRM and Android seem to have some overlap.STREQUAL
, MATCHES
did not return true there for me.@computermouth For me the proposed solution is ok, I don't maintain the CMake build system.
Also note that there could be some issues with PLATFORM_DRM
on Bullseye: https://github.com/raysan5/raylib/issues/2439
Oh, dang, ok good to know. Honestly, I'd rather not use cmake anyway. Didn't realize that just building for DRM with just the makefile was an option. Lovely!
I'll still make this PR in a bit, once I've done some more testing.
an automatically generated script 1,000's lines long - what could possibly go wrong, never understand why people have such hate for simple makefiles after all said and done they often just work
At first I was trying to build this for armhf (non-pi, mesa gles2), and I was finding these errors, so I just tried to build it for x86_64 (where I already have a working install for desktop/x11 raylib), and I discovered that the issue persists.
So far I've tried building with the included glfw, as well as compiling glfw from source (with
-DUSE_EXTERNAL_GLFW=ON
). No luck.Maybe I'm just missing something simple, but the wiki page doesn't mention much about building for DRM. Any suggestions? My final target is an armhf handheld that I've successfully used SDL2 with on DRM.
Process for armhf is the same, except
FROM arm32v7/debian
.Dockerfile:
Full log: