I am trying to create a project (namely, the source of Angband - http://rephial.org/downloads/3.3/angband-v3.3.2.tar.gz ) with Emscripten emcc in order to transfer it to Javascript and eventually create an online version .
I managed to start the process with
emconfigure./configure do
which starts to successfully start generating .o files of LLVM files, but then it hangs on main-gcu.c with 'main-gcu.c: 43: 11: fatal error: file ncurses.h not found'
I believe main-gcu.c is the only file that references ncurses, but I just can't figure out how to enable the library at compile time. Is there a way to specify, including ncurses with "make", or do I need to compile the main-gcu.c file separately with "emcc main-gcu.c -c -lncurses"? I tried to do this, but this led to another error when emcc could not find the other actually included header files on two levels (it could not find the headers that were included by the header included by main-gcu.c - anyway to fix this?).
I'm also not sure what I need / need to install the ncurses library on Mac OSX. All I really can find are links to libncurses5-dev for Linux.
Thanks!
source share