$ node-gyp build
gyp info it worked if it ends with ok
gyp info using firstname.lastname@example.org
gyp info using email@example.com | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: *** No rule to make target `Release/obj.target/hello/hello.o', needed by `Release/hello.node'. Stop.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/share/npm/lib/node_modules/node-gyp/lib/build.js:232:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.2.0
gyp ERR! command "node" "/usr/local/share/npm/bin/node-gyp" "build"
gyp ERR! cwd /Users/yarco/Sites/js/tmp
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.8.0
gyp ERR! not ok
following the code from http://nodejs.org/api/addons.html
How did you install node-gyp?
npm install -g node-gyp
BTW, i'm updating my XCode. will it affect this?
node-gyp configure is ok
just node-gyp build.
$ tree build/
0 directories, 5 files
seems didn't create the directory Release
I can't seem to reproduce. Can you give me any more details?
oh, sorry...i make something wrong. it is ok now.
yarcowang, I am facing a similar problem what did you do to solve the issue? Could you post further details?
Yes, i'm shamed to say that...
Thanks mate!! I just spotted the same problem my source file was named "test.cpp" and in the binding.gyp targets -> sources I had wrongly mentioned "test.cc"
Me too, same problem, thank you!
Mine lacks the file path.
Hi, i'm a newer, could you please tell me how to define the "target" and "source"?
omg yeah i had a typo in targets->sources as well, wrong filename, haha shit! Thanks for this post, would have taken me hours otherwise. It's in binding.gyp, William