Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Evaluate if embedding Node.js as a static library is easier than embedding V8 #129

Open
aschaeffer opened this issue Oct 5, 2019 · 4 comments

Comments

@aschaeffer
Copy link
Contributor

No description provided.

@aschaeffer
Copy link
Contributor Author

It seems this wouldn't solve the actual problem because we still need V8 as static library:

nodejs/help#1415 (comment)

You are doing it right and you can use the libnode.a in your C/C++ project. However, you still need other static libraries when you build your final executable, like libuv, v8, icu, openssl, http_parser and etc. And you can find these static libraries under out/deps

@aschaeffer
Copy link
Contributor Author

denoland/deno#1666

@viferga
Copy link

viferga commented Jul 22, 2020

Hi! If you are interested in embedding NodeJS or V8, you may be interested in trying MetaCall: https://github.com/metacall/core

We have a simple example for embedding NodeJS (as a dynamic library) into C/C++: https://github.com/metacall/embedding-nodejs-example

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

No branches or pull requests

2 participants