nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.92k stars 476 forks source link

TIC-80 Android Ruby Support #2636

Open hleblegendarny opened 1 month ago

hleblegendarny commented 1 month ago

Is any way that in near future TIC-80 on Android will support Ruby language? Trying to build android with -DBUILD_WITH_RUBY=ON cause only error in Github Actions(cannot build on computer because I'm too dumb for this).

MRuby::Toolchain::Android::SysrootNotReady: Couldn't find standard header files
  Please Move/Copy important file inside
    <NDK_HOME>/sysroot/usr/include/
  to
    <NDK_HOME>/platforms/<ANDROID_VERSION>/<ARCH>/usr/include/
  Higher NDK version will be use.
  /home/runner/work/TIC-80/TIC-80/vendor/mruby/tasks/toolchains/android.rake:196:in `sysroot'
  /home/runner/work/TIC-80/TIC-80/vendor/mruby/tasks/toolchains/android.rake:307:in `cflags'
  /home/runner/work... bluh bluh bluh a lot of text
  build/janet_boot . JANET_PATH '/usr/local/lib/janet' > build/c/janet.c
  cksum build/c/janet.c
  3835800834 2866566 build/c/janet.c
  [157/685] Building C object CMakeFiles/quickjs.dir/vendor/quickjs/quickjs.c.o
  [158/685] Building C object CMakeFiles/scheme.dir/vendor/s7/s7.c.o
  ../../../../../../../vendor/s7/s7.c:12958:13: warning: no arithmetic overflow checks in this version of s7 [-W#pragma-messages]
      #pragma message("no arithmetic overflow checks in this version of s7")
              ^
  1 warning generated.
  ninja: build stopped: subcommand failed.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org/
BUILD FAILED in 2m 16s

Or maybe I could implement Ruby somehow other way than just set -DBUILD_WITH_RUBY=ON?

Miguel-hrvs commented 1 month ago

Ruby worked in older versions, we have to look into what's happening.