-
Notifications
You must be signed in to change notification settings - Fork 79
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 fails on Linux ARM64 (sokol-shdc not supported on this platform) #104
Comments
Yep, that's expected unfortunately. Fixing this shouldn't be too complicated, because I had set up a build pipeline for sokol-shdc here while ago: https://github.com/floooh/sokol-tools/actions/runs/2765663111 How do you run Linux on your M1 Mac? Through Docker, or some other VM solution? If I manage to setup a similar environment on my Mac I can look into this. PS: thinking about this, I probably just need to build sokol-shdc in a different docker image (like https://hub.docker.com/r/arm64v8/alpine/) - the Linux build already happens in an Alpine docker image so that I can trivially get a statically linked executable which runs on all Linux distros. |
I'm running Ubuntu 22.04 arm64 with Parallels Desktop 18, which is of course a commercial product. Don't have much experience with other virtualization systems on M1, so can't help on that one too much if it's possible with other solutions.
If it's not too complicated, would help us test out that our Linux builds (https://sumo.app/, working on an yet-to-be-announced creative software that uses Sokol as it's GPU abstraction and app layer) work on a single developer computer more easier. Can help you test out if needed 👍 |
Hmm, wait it's not as simple as just running an ARM docker image, this would need emulation because the Github runners are all x86. I need to add proper linux cross-compilation support to fips first, that's be a bit more work. I'll try to tinker with this in a free minute. |
Well don't stress about it, not a high priority target, we are running actual x86 linux machines for our Linux developers anyway, the arm64 target would be nice but not necessary :) |
Hey, I'm trying to build the sokol-samples on Linux ARM64 (running virtualized inside a M1 mac), the build fails most probably because the sokol-tools-bin does not contain a precompiled version for arm64 linux:
Just wanted to report this, although probably not a high priority target and seems I can manually build the docker version of the sokol-shdc, at least I got it to compile but no idea how to run it (no experience with docker).
Anyway let me know if you need somebody to build the binary on, already succeeded on it but gave up as couldn't figure out how to run it or where the docker build actually ended up :)
The text was updated successfully, but these errors were encountered: