Say I make a game that uses SDL for graphics and compile a linux version of it. Instead of going through the hassle of using Android SDK/NDK to make it a proper installable apk, would it be viable to have it be run as a program off termux?

  • I Cast Fist@programming.devOP
    link
    fedilink
    arrow-up
    3
    ·
    17 hours ago

    Not quite what I asked. I meant, if I make a linux executable, for ARM cpu, that uses SDL (suppose all libs and dependencies are packed in) and run it from termux, will it work?

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      17 hours ago

      It won’t, because there’s no graphics display, so SDL won’t initialize.

      You need to install and launch Termux:X11 to provide a video surface, and it won’t support GL acceleration.