Re:Cross-compiling binaries for Windows is easier than build...
by seba_dos1 on Sunday June 19, 2022 @03:28PM
(#31802550)
Steam distributes an entire runtime environment because it's a platform that's being targeted by 3rd party developers, who often make mistakes that Steam Runtime tries quite hard to reconcile. When all you care about it's your own app, you're in power to compile things however you want and bundle whatever you want with it, at which point it's honestly not that hard. Building in a container is a breeze, tooling is top notch, images with old distros are one command away, testing is easy; in practice I had much more trouble compiling stuff for Windows than for old GNU/Linux distros.
Re:Cross-compiling binaries for Windows is easier than build...
by nickelpro on Sunday June 19, 2022 @03:31PM
(#31802571)
It's easy to compile an entirely new binary for every platform/distro, and it's easy to bundle an entire execution environment along with a single binary using docker, what's hard is compiling a single binary and have it run across all distros and execution environments.
Re:Cross-compiling binaries for Windows is easier than build...
by account42 on Tuesday June 21, 2022 @04:24AM
(#31821615)
It really isn't that hard to get a single binary that works across glibc-based distros. Just compile against the oldest version of glibc/Xlib/etc. you want to support and bundle all non-system libraries, statically linking them with symbols hidden if possible.
We are not talking out of our ass here - I myself do this for all the software I maintain and just works. Tons of programs are released this way.
Re:Cross-compiling binaries for Windows is easier than build...
by seba_dos1 on Sunday June 19, 2022 @03:38PM
(#31802624)
"Across all distros" - sure, that's outright impossible, and for a good reason. "Across all distros that matter" - no, it's not. How do you think Electron apps distributed in binary form work fine across various distributions?
Look no further than the hoops you need jump through to distribute a Linux binary on PyPI [1]. Despite tons of engineering effort, and lots of hoop jumping from packagers, getting a non-trivial binary to run across all distros is still considered functionally impossible.
[1]: https://github.com/pypa/manylinux