I have written a game using Odin. If I compile it on Windows, I just need to ensure that SDL.dll is in the same directory as my game to run it on another computer, but if I compile on linux I seem to need libc++ to be installed.
In the end, it was easier to copy the windows version of my game to my Linux PC and run it through Steam!
Is it possible to statically link everything apart from SDL on Linux, the same as on Windows?
Moving the binaries to another Linux non-dev computer. I want to be able to just copy it there and run it, with minimal dependencies. Just like the Odin compiler!
I only have dev Linux systems, so never tried to run an Odin executable on a non-dev system.
I’d also like to know the answer to this question. I had thought that “-target=linux_amd64” would do it.
I found this while searching. It’s for cross compiling for ARM from x86_64. These steps seem to make sense for compiling on x86_64 for ARM, but for x86_64 to x86_64, it seems like Odin should already be doing this. Maybe this link will step you (us?) in the right direction though. https://gaultier.github.io/blog/odin_and_musl.html