CXX(target) Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o
In file included from ../deps/libncurses/c++/cursesp.cc:35:0:
../deps/libncurses/c++/cursesp.h: In member function ‘T NCursesUserPanel::UserData() const’:
../deps/libncurses/c++/cursesp.h:256:43: error: no matching function for call to ‘NCursesUserPanel::get_user() const’
return reinterpret_cast<T>(get_user ());
^
../deps/libncurses/c++/cursesp.h:80:9: note: candidate: void NCursesPanel::get_user()
void get_user()
^~~~
../deps/libncurses/c++/cursesp.h:80:9: note: passing ‘const NCursesUserPanel*’ as ‘this’ argument discards qualifiers
deps/libncurses/libncurses.target.mk:321: recipe for target 'Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o' failed
make: *** [Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o] Error 1
make: Leaving directory '/home/innocent/Documents/projects/node-ncurses/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/innocent/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-88-generic
gyp ERR! command "/home/innocent/.nvm/versions/node/v10.15.3/bin/node" "/home/innocent/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/innocent/Documents/projects/node-ncurses
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ncurses@0.4.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ncurses@0.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/innocent/.npm/_logs/2020-04-28T11_32_48_373Z-debug.log
I tried making sure that I installe the latest gcc and libncurses on Ubuntu.
I also download some c++ ncurses code and got it running.
Also this same thing happens when I try Blessed.
I would love to try this out. Any pointers would maybe help.
When I run npm install I get this result
CXX(target) Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o In file included from ../deps/libncurses/c++/cursesp.cc:35:0: ../deps/libncurses/c++/cursesp.h: In member function ‘T NCursesUserPanel::UserData() const’:
../deps/libncurses/c++/cursesp.h:256:43: error: no matching function for call to ‘NCursesUserPanel::get_user() const’
return reinterpret_cast<T >(get_user ());
^
../deps/libncurses/c++/cursesp.h:80:9: note: candidate: void NCursesPanel::get_user()
void get_user()
^*’ as ‘this’ argument discards qualifiers
deps/libncurses/libncurses.target.mk:321: recipe for target 'Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o' failed
make: *** [Release/obj.target/libncurses/deps/libncurses/c++/cursesp.o] Error 1
make: Leaving directory '/home/innocent/Documents/projects/node-ncurses/build'
gyp ERR! build error
gyp ERR! stack Error:
~~~ ../deps/libncurses/c++/cursesp.h:80:9: note: passing ‘const NCursesUserPanelmake
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/innocent/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Linux 4.15.0-88-generic gyp ERR! command "/home/innocent/.nvm/versions/node/v10.15.3/bin/node" "/home/innocent/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/innocent/Documents/projects/node-ncurses gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ncurses@0.4.2 install:node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ncurses@0.4.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/innocent/.npm/_logs/2020-04-28T11_32_48_373Z-debug.log
I tried making sure that I installe the latest gcc and libncurses on Ubuntu. I also download some c++ ncurses code and got it running. Also this same thing happens when I try Blessed.
I would love to try this out. Any pointers would maybe help.
Thanks