mscdex / node-ncurses

An ncurses binding for node.js
MIT License
385 stars 25 forks source link

Build Issues on Cygwin #1

Closed sewpafly closed 14 years ago

sewpafly commented 14 years ago

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
sewpafly commented 14 years ago

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.

sewpafly commented 14 years ago

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