zlacker

[parent] [thread] 1 comments
1. pjmlp+(OP)[view] [source] 2024-02-12 11:25:23
I specified Android/NDK for a reason, the NDK has all the same C, C++, SDL, OpenGL, Vulkan stuff that you will find on GNU/Linux.
replies(1): >>kbolin+oMh
2. kbolin+oMh[view] [source] 2024-02-17 18:35:46
>>pjmlp+(OP)
Ok, sure, if you already wrote your game to be cross-platform, then porting it to one of the platforms your libraries support may well be trivial. That feels almost tautological and the precondition you've set up here doesn't apply to most games.

SDL2 is a great library, and many good games have been built using it. But then your target platform is not Android at all, it's SDL2's platform-agnostic abstractions (plus OpenGL or Vulkan if you're doing 3D graphics). And you still may run into input handling issues if you didn't think carefully about the differences between mobile and desktop.

Then, to achieve something like the binary compatibility Windows already provides, you'll need to statically link your executable on Linux. That definitely means no GNU because virtually no game developer is going to allow themselves to be forced onto a copyleft license.

[go to top]