gurrhack / NetHack-Android

Android port of NetHack
128 stars 23 forks source link

Building on recent NDK #34

Closed Ranbato closed 5 years ago

Ranbato commented 6 years ago

It looks like a few things need to be changed to compile this with a recent NDK as I keep getting errors. Researching a bit, it looks like the Unified Headers and deprecation of gcc are the issues.

Anyone resolved this yet? If not I'll play with it and see what I can figure out.

gurrhack commented 6 years ago

Yes, you can build it with NDK r16b by creating a standalone toolchain (build/tools/make-standalone-toolchain.sh) using --arch=arm --install-dir=somedir. Then point sysroot in Makefile.src to somedir/sysroot and replace gcc with clang.

I'll commit updated build scripts eventually.

gurrhack commented 5 years ago

Fixed. Updated build instructions and updated makefile.