Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodewii fails to build #3

Open
guiman opened this issue Jul 24, 2012 · 3 comments
Open

Nodewii fails to build #3

guiman opened this issue Jul 24, 2012 · 3 comments

Comments

@guiman
Copy link

guiman commented Jul 24, 2012

Hi there, we are trying to use this library and we cant build it. This is the system information;

Node: (0.8.5 and also tried with 0.6.5)
Ubuntu 12.04

The message displayed is:

[email protected] preinstall /home/alvaro/project_wii/node_modules/nodewii
./configure

Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for program g++ or c++ : /usr/bin/g++
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/alvaro/node-v0.6.5
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.116s)

[email protected] install /home/alvaro/project_wii/node_modules/nodewii
make

Waf: Entering directory /home/alvaro/project_wii/node_modules/nodewii/build' [1/3] cxx: src/base.cc -> build/Release/src/base_1.o [2/3] cxx: src/wiimote.cc -> build/Release/src/wiimote_1.o ../src/base.cc:7:25: error fatal: node_events.h: No existe el archivo o el directorio ../src/wiimote.cc:8:25: error fatal: node_events.h: No existe el archivo o el directorio compilación terminada. compilación terminada. Waf: Leaving directory/home/alvaro/project_wii/node_modules/nodewii/build'
Build failed:
-> task failed (err #1):
{task: cxx base.cc -> base_1.o}
-> task failed (err #1):
{task: cxx wiimote.cc -> wiimote_1.o}
make: *** [build_bindings] Error 1
npm ERR! error installing [email protected] Error: [email protected] install: make
npm ERR! error installing [email protected] sh "-c" "make" failed with 2
npm ERR! error installing [email protected] at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:70:17)
npm ERR! error installing [email protected] at maybeExit (child_process.js:359:16)
npm ERR! error installing [email protected] at Process.onexit (child_process.js:395:5)
npm ERR! [email protected] install: make
npm ERR! sh "-c" "make" failed with 2
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the nodewii package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls nodewii
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.0-12-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "nodewii"
npm ERR! cwd /home/alvaro/project_wii
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: make
npm ERR! message sh "-c" "make" failed with 2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/alvaro/project_wii/npm-debug.log
npm not ok

Any ideas?

@tbranyen
Copy link
Owner

Because this was written during the node-waf era. This project needs to be ported to node-gyp, can you take a stab at it and pull request if you get it working?

@TooTallNate
Copy link

node_events.h no longer exists, so it looks like some of the code will need updating as well.

@dpaez
Copy link

dpaez commented Aug 1, 2012

@guiman and me forked this. Thanks to @AndoniZubimendi who help us with the c++ side we could build it with current node (0.8.4) using node-gyp. Feel free to go there and take a look, right now we are having some issues with the events, its like they weren't happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants