mscdex/node-ncurses

Build Issues on Cygwin

sewpafly opened this issue · 2 comments

I'm unsure how to make this change through all the config files, but apparently cygwin didn't like the -static flag that was being used in deps/ncurses/progs/Makefile and deps/ncurses/tests/Makefile. I removed these and it appeared to compile fine...

However after compiling I tried to run test.js and got the following errors.

xxxxxxxxxxxxxx/node-ncurses/examples/test.js:5
                                                     win.centertext(win.lines/2, "hello world");
                                                                                                    ^
 Error: Invalid number and/or types of arguments
                                                    at Object.<anonymous> (xxxxxxxxxxxxxx/node-ncurses/examples/test.js:5:5)
                                   at Module._compile (module:381:21)
                                                                         at Module._loadScriptSync (module:390:8)
                 at Module.loadSync (module:296:10)
                                                       at Object.runMain (module:444:22)
                                                                                            at node.js:242:10

Also colortest.js output this which looks a little funny with the undefined:

Max color pairs support == 64
Initialized color pairs == undefined

White on black
Red on white
Green on black
Yellow on black

The test.js error went away after I got the latest ncurses from cygwin, however the build error still exists and the undefined in colortest appears to still have problems.

The compile error went away after I created a link libgcc_s.a to point to the libgcc_s.dll.a library.