我在尝试运行链接 1 处的代码时遇到以下错误。请帮助解决此问题
Link 1 : https://developers.google.com/v8/get_started#audience
------------------------------------错误开始--------------------------------------------------
amit-macbook:v8 amit.sood$ g++ -Iinclude hello_world.cpp -o hello_world -Wl,--start-group out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase.x64,snapshot},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt
clang: error: no such file or directory: 'out/x64.release/obj.target/tools/gyp/libv8_base.a'
clang: error: no such file or directory: 'out/x64.release/obj.target/tools/gyp/libv8_libbase.x64.a'
clang: error: no such file or directory: 'out/x64.release/obj.target/tools/gyp/libv8_snapshot.a'
clang: error: no such file or directory: 'out/x64.release/obj.target/third_party/icu/libicuuc.a'
clang: error: no such file or directory: 'out/x64.release/obj.target/third_party/icu/libicui18n.a'
clang: error: no such file or directory: 'out/x64.release/obj.target/third_party/icu/libicudata.a'
------------------------------------错误结束------------------------------------------------
我使用下面的链接 2 安装了 V8。我安装了它的 64 位版本
最佳答案
在我的机器上成功构建 v8 后,我在这里整理了一份在 Mac OSX 上构建 v8 的指南 - 让我知道这是否适合您,希望得到反馈:https://gist.github.com/netpoetica/28ce31478cfc43edcaa7
此外,特别是关于您的问题:这里有几种可能性。首先,确保您确实有一个/out 目录 - 该目录会在调用 make
后出现。接下来,当您调用 make
时,您可能并未实际创建名为 out/x64 的文件夹。相反,您可能(可能)调用了 make native
或 make ia32 -j 2
或类似的东西 - 文件夹名称 x64.release 应该仅在您使用 make 时才存在,如下所示:
制作 x64
//或者
制作x64.release
关于node.js - 运行 V8 javascript 引擎示例代码时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24523419/