运行V8 JavaScript引擎的示例代码时出错

尝试在链接1上运行代码时出现以下错误。请帮助如何解决此问题

链接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位版本

链接2: https : //code.google.com/p/v8/wiki/BuildingWithGYP

我在这里为我在Mac OSX上构buildv8的指南做了介绍,在我的机器上获得了成功之后 – 让我知道这是否适合你,喜欢反馈: https : //gist.github.com/netpoetica/28ce31478cfc43edcaa7

另外,特别是关于你的问题:这里有几个可能性。 首先,确保你实际上有一个/ out目录 – 在调用make后会出现这个目录。 接下来,当您调用make ,您可能没有真正创build一个名为/ x64的文件夹。 相反,你可能(可能)已经调用make native或者可能make ia32 -j 2或类似的东西 – 文件夹名称x64.release应该只存在如果你使用像这样:

make x64 // or make x64.release