node-gyp make error no rule to make target

1,692 views
Skip to first unread message

NodeNinja

unread,
Nov 16, 2012, 2:11:29 AM11/16/12
to nod...@googlegroups.com
I'm trying to build a node addon on linux with node-gyp

My binding.gyp looks like this

{
  "targets": [
{
 "target_name": "test",
 "sources": [ "test.cc" ]
}
]
}

when I do 

node-gyp configure

I get a build folder with the required makefiles etc.

but when I try to do

node-gyp build

I get 
make: *** No rule to make target `Release/obj.target/test/test.o', needed by `Release/obj.target/test.node'.  Stop.

When I look into the folder structure I find that there is no directory like Release/obj.target/test in the build folder.
Anyway to correct this?


Nathan Rajlich

unread,
Nov 16, 2012, 11:45:36 AM11/16/12
to nod...@googlegroups.com
This looks like the same error message:
https://github.com/TooTallNate/node-gyp/issues/165

You should ask that guy what he did to fix it.
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

NodeNinja

unread,
Nov 16, 2012, 12:50:00 PM11/16/12
to nod...@googlegroups.com


On Friday, November 16, 2012 10:16:16 PM UTC+5:30, Nathan Rajlich wrote:
This looks like the same error message:
https://github.com/TooTallNate/node-gyp/issues/165

You should ask that guy what he did to fix it.


Good Idea!  Will update this post as soon as I get some reply from him. How to contact him though? 

Nathan Rajlich

unread,
Nov 16, 2012, 1:19:18 PM11/16/12
to nod...@googlegroups.com
You could just reply to that GitHub issue.

NodeNinja

unread,
Nov 17, 2012, 1:02:38 AM11/17/12
to nod...@googlegroups.com


On Friday, November 16, 2012 11:50:01 PM UTC+5:30, Nathan Rajlich wrote:
You could just reply to that GitHub issue.

YarcoWang at github helped me fix the problem. 
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" 

Many thanks!!
Reply all
Reply to author
Forward
0 new messages