Hey Solar2D community π
We needed to build Android APKs from Solar2D on Linux CI runners, but there's no official Linux build of Solar2DBuilder. After digging into the source, it turned out to be mostly #ifdef gaps β Solar2D's C++ code is cross-platform, it just hadn't been wired up for Linux.
We fixed 5 small issues, bundled the result, and published it as a community repo:
https://github.com/Cubeage/solar2d-linux
- Pre-built binaries with bundled libs (works on any distro)
- Auto-rebuilds when Solar2D releases a new version
- Patches documented if you want to build yourself
The fixes are straightforward β adding a Rtt_LINUX_ENV branch wherever Mac/Win were handled, wiring up GetResourceDirectory() via /proc/self/exe, and using $TMPDIR instead of /TemporaryFiles. Would be happy to upstream these as a PR if the team is interested.
Sharing here in case it's useful to others!
Hey Solar2D community π
We needed to build Android APKs from Solar2D on Linux CI runners, but there's no official Linux build of
Solar2DBuilder. After digging into the source, it turned out to be mostly#ifdefgaps β Solar2D's C++ code is cross-platform, it just hadn't been wired up for Linux.We fixed 5 small issues, bundled the result, and published it as a community repo:
https://github.com/Cubeage/solar2d-linux
The fixes are straightforward β adding a
Rtt_LINUX_ENVbranch wherever Mac/Win were handled, wiring upGetResourceDirectory()via/proc/self/exe, and using$TMPDIRinstead of/TemporaryFiles. Would be happy to upstream these as a PR if the team is interested.Sharing here in case it's useful to others!