How to: Convert C libraries to gyp

144 views
Skip to first unread message

Nathan Rajlich

unread,
Oct 2, 2012, 12:13:46 AM10/2/12
to nodejs
Calling all native module authors!


Linked is a blog article I've written about converting C libraries to use gyp. If you have a native module that dynamically links to some external library, then you should definitely give it a read. So far I've applied this method to node-ffi (libffi), node-lame (libmp3lame) and node-expat (libexpat, still awaiting Pull Request merge from @astro), and it works great. Cheers!

Ben Noordhuis

unread,
Oct 2, 2012, 9:30:25 AM10/2/12
to nod...@googlegroups.com
Upvote for great good. Every module author should read it.

Tim Caswell

unread,
Oct 2, 2012, 10:22:36 AM10/2/12
to nod...@googlegroups.com
Sounds great, except I've been having trouble using gyp to
cross-compile. Is cross-compiling something that gyp supports. In
particular I want to compile for various arm variants and the mips
that's often found in routers.

I'd love to convert all my dependencies to using gyp, but if I can't
then cross-compile it will have been a waste of time when I need that.

Great work on the article! Sorry for hijacking the thread. It just
made me think of 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

Nathan Rajlich

unread,
Oct 2, 2012, 10:44:29 AM10/2/12
to nod...@googlegroups.com

Tim Caswell

unread,
Oct 2, 2012, 10:57:54 AM10/2/12
to nod...@googlegroups.com
Oh right. I'll forward that to my people who have been complaining.
Thanks again for all the awesome writeups.
Reply all
Reply to author
Forward
0 new messages