-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build issues on Linux #28
Comments
Hi, Xorg, dl, pthread are all probably required because of sokol. libc's math is indeed required by rayfork, not sure if there would be a better way to handle math functions (maybe we could include a built-in set of math functions that don't rely on libc). Thanks for the help though, I will add those libraries to the sokol template on linux. |
I'll try testing this on Linux later on. BTW probably in 2024 some people are looking for Wayland and not X11 since "this is the way". |
My quick look at this, gcc is incredibly picky
There are about 50 of these before it stops compilation. I haven't done the dive into the specifics. Will investigate. I would really want this able to build on an RPi4-5 eventually. |
First, rayfork refuses to compile with sokol because glad is imported after sokol, which includes it's own GL, which makes glad refusing to compile, as OpenGL is already imported.
To fix it, you need to include glad before sokol in `https://github.com/SasLuca/rayfork/blob/rayfork-0.9/tests/platform-independent-tests/platform-layers/sokol/sokol-main.c#L8
Another issue is missing symbols (as required by e.g sokol).
target_link_libraries(m)
, this affect directlyrayfork.h
target_link_libraries(X11 Xi Xcursor)
target_link_libraries(dl)
target_link_libraries(pthread)
All of them gives
target_link_libraries(m dl pthread X11 Xi Xcursor)
The text was updated successfully, but these errors were encountered: