简体   繁体   English

如何在Linux中使用v8共享库

[英]how to use v8 shared library in linux

I am working on a project that uses v8 engine. 我正在使用v8引擎的项目中工作。 I have followed the instructions on v8 git page to compile it and generated some .so files. 我已经按照v8 git页面上的说明进行了编译,并生成了一些.so文件。 But now after that there are no more directions as how to proceed with those library files. 但是,在此之后,关于如何继续处理这些库文件,不再有任何指导。 I wanted to try out with the hello-world example provided but it uses static libraries(but we need dynamic ones). 我想尝试使用提供的hello-world示例,但该示例使用静态库(但我们需要动态库)。 I couldn't find any relavant documentation nor tutorials on internet... Could anyone point me to some directions as how to proceed to include those dynamic libraries to my program.. 我在Internet上找不到任何相关的文档或教程。有人可以指出我的一些指导,以便继续将这些动态库包含到我的程序中。

This tutorial helped me a lot: 本教程对我有很大帮助:

https://medium.com/dailyjs/how-to-build-v8-on-windows-and-not-go-mad-6347c69aacd4 https://medium.com/dailyjs/how-to-build-v8-on-windows-and-not-go-mad-6347c69aacd4

and also, if you don't want to have this kind of problem with the libraries, you can use the v8 NuGet: 而且,如果您不想在库中遇到此类问题,则可以使用v8 NuGet:

https://github.com/pmed/v8-nuget https://github.com/pmed/v8-nuget

You can install directly into your project in VisualStudio and you don't need to make any reference. 您可以直接安装到VisualStudio中的项目中,而无需进行任何引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM