There's no major roadblock preventing one from compiling a shared object; I just successfully built `node.so` from master branch, it just involves adding a few compile flags here and there. I haven't tried linking against it or otherwise using it.
How useful it actually is, in its current state, depends on what you want to do. What *is* it that you want to do? On Wednesday, July 3, 2013 3:02:21 PM UTC-7, [email protected] wrote: > Correct me if I'm wrong, since the old version of Nodejs supports building > itself as a static/dynamic library, you could just effectively(I haven't > tried yet) call methods that were declared in node_main.cc, right? So what > are the major roadblockers that prevent Node from being embeddable? > > On Wednesday, July 3, 2013 1:52:46 PM UTC-7, Stephen Belanger wrote: >> >> That's not really possible currently. Node would need some major changes >> to support being embeddable. >> >> On Wednesday, 3 July, 2013 at 1:50 PM, [email protected] wrote: >> >> I'm trying to embed node inside c++. >> >> On Wednesday, July 3, 2013 11:06:59 AM UTC-7, Ben Noordhuis wrote: >> >> On Wed, Jul 3, 2013 at 7:18 PM, <[email protected]> wrote: >> > Hi all, I notice from this thread >> > "https://groups.google.com/forum/#!topic/nodejs/o9zXYx6DywU" that one >> could >> > use "make dynamiclib" to build nodejs as a dynamic library. But in the >> most >> > recent commit of nodejs(commit >> 6f8ddf375950f506f26e143900355871416a03e6), >> > the Makefile under the top directory doesn't contain dynamiclib as a >> label >> > any more. So how could we build node as a library now? >> > >> > Thanks in advance >> >> You don't, it's not supported. What's your use case? >> >> -- >> -- >> 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
