如何在 XCode IDE 中构建 NodeJS?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17654939/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to build NodeJS in XCode IDE?
提问by Phil
How can I build NodeJS within the XCode IDE as a project? NodeJS build instructions say that it should be built with:
如何在 XCode IDE 中构建 NodeJS 作为项目?NodeJS 构建说明说它应该使用:
./configure
make
make install
However I wish to build within the XCode IDE.
但是我希望在 XCode IDE 中构建。
What I really want to do is embed NodeJS within my application, so I think if I can build NodeJS within XCode then I can just adjust it to add my application once I have NodeJS building and running.
我真正想做的是将 NodeJS 嵌入到我的应用程序中,所以我认为如果我可以在 XCode 中构建 NodeJS,那么一旦我构建并运行了 NodeJS,我就可以调整它以添加我的应用程序。
I made some progress I think by getting V8 to compile in XCode, now I am trying to add NodeJS to the V8 project.
我认为通过在 XCode 中编译 V8 取得了一些进展,现在我正在尝试将 NodeJS 添加到 V8 项目中。
回答by Pylipala
Run ./configure --xcode
in node repository root and you will get node.xcodeproj
file you want.
./configure --xcode
在节点存储库根目录中运行,您将获得所需的node.xcodeproj
文件。
回答by Gautham
As of this commit in Node.js - https://github.com/nodejs/node/pull/20328one must do -
截至 Node.js 中的此提交 - https://github.com/nodejs/node/pull/20328必须做的 -
./configure -- -f xcode