Tag: node gyp

node-gyp OSX 10.7.5 – dyld:懒惰符号绑定失败:找不到符号

我search了很多,我发现这个问题最接近的是这个(也没有答案)的问题: 找不到符号:_libintl_gettext 我正在尝试为libpuzzle制作一个精简的c ++包装器。 $ node –version v0.8.18 $ npm –version 1.2.4 $ node-gyp –version v0.8.3 github上的源代码 试图build立(我已经用…来缩短path) $ node-gyp clean configure build && node test.js gyp info it worked if it ends with ok gyp info using node-gyp@0.8.3 gyp info using node@0.8.18 | darwin | x64 gyp info spawn python gyp info spawn args […]

node-gyp构build如何在构build节点扩展时指定目标节点版本

我正在从node-waf构build迁移到节点本地插件的node-gyp构build系统。 node-gyp表示它支持多个目标版本,但是在使用node-gyp时我找不到如何指定目标节点版本。 问题是,我的系统安装了节点v0.10.3,但我需要为节点版本0.8.20构build我的本地插件。 当我构build附加组件时,它使用v0.10.3的头文件,这个头文件给出错误。 我无法find如何在使用node-gypconfiguration/构build时指定节点版本。 请帮忙。

node-gyp构build库依赖关系

我想find一种方法来简化Node.js“ libtorrent ”模块的安装。 我的目标是能够为每个体系结构提供预编译的.node文件,例如在光纤模块中完成。 这样,用户就可以安装模块而不需要安装依赖关系,编译等。 我的问题是:如果我想这样做,是否需要在项目中包含所有依赖关系(libtorrent和一些Boost库),并使用node-gyp构build它们? 或者如果我在我的系统上安装了这些依赖关系的模块,它们将被包含在最终的.node文件中? 谢谢你的帮助。

node-gyp – 找不到库标题

我正在尝试在我的节点插件中使用gstreamer框架。 我有以下我的我的binding.gyp,但是当我运行生成命令它,控制台指出找不到标题。 当我编译我的gstreamer文件之外的节点gyp,它编译成功。 有没有人看到我的绑定文件有什么问题? 安慰 hello.cc3:25: fatal error: gstreamermm.h: No such file or directory binding.gyp { "targets": [ { "target_name": "addon", "libraries": [ "-lgstreamer-1.0", "-L/usr/inlcude/gstreamer-1.0/gst/" ], "sources": [ "hello.cc" ] } ] } 编译命令工作正常,我试图运行 g++ main.c -o main `pkg-config –cflags –libs gstreamer-1.0` 更新:继@Mike Kinghan binding.gyp

Windows_NT中的bcrypt模块的node-gyp构build错误6.1.7600(x86)

我发现许多答案就像这样一个问题,但是他们都解决不了我的问题。 这里是我的版本安装: node 0.10.31 npm 1.4.23 node-gyp 0.10.31 bcrypt 0.7.8 我有package.json "bcrypt": "0.7.x"的依赖项"bcrypt": "0.7.x" 。 这是我的一步一步: 1)运行npm install gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 我不得不安装Python 2.7。* 2)运行npm install MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install […]

如何使用.node文件?

我试图安装node_mouse ,当我查看我的节点模块文件夹,而不是正常的.js文件扩展名时,我发现一个.node文件扩展名。 我怎么能运行node_mouse? 我看了这个,我认为这可能是用C ++编写的插件,但我不完全确定( 节点插件 )

如何使用node-gyp在Mac上生成XCode项目

我正在使用node-gyp来构buildnode.js加载项。 binding.gyp文件的内容是 { 'targets': [ { 'target_name': 'myapp', 'include_dirs': ['api-sdk'], 'sources': [ 'main.cpp', 'lib.cpp'], 'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions' ], 'conditions': [ ['OS=="mac"', { 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' } }] ] } ] } 在Windows上,当我运行node-gyp configure ,Visual Studio项目会自动生成。 但在Mac上,在执行node-gyp configure gyp configure之后不会生成相应的XCode项目。 有谁知道如何用Node-gyp生成XCode项目? 我应该添加一些设置到binding.gyp文件? 谢谢, 杰弗里

NPM安装在node-gyp中失败

我们在我们的项目上运行“npm install”时遇到问题。 某个文件无法find: fatal error C1083: Cannot open include file: 'windows.h' 它似乎来自node-gyp模块: c:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ src \ win_delay_lo ad_hook.c(13): 致命错误C1083:无法打开包含文件:'windows.h':没有文件或目录[D:\ ngs-frontend-next \ node_modules \ browser-sync \ node_module s \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ bufferutil \ buil […]

使用node-gyp的node.js应用程序无法在Azure网站上部署

我build立了一个Azure网站,我试图使用一个依赖于node-gyp的示例应用程序。 我得到这个: emote: > node-expat@2.0.0 install C:\DWASFiles\Sites\node-canvas\VirtualDirectory0\site\wwwroot\node_modules\node-salesforce\node_modules\xml2json\node_modules\node-expat remote: > node-gyp rebuild remote: remote: remote: C:\DWASFiles\Sites\node-canvas\VirtualDirectory0\site\wwwroot\node_modules\node-salesforce\node_modules\xml2json\node_modules\node-expat>node "D:\Program Files (x86)\npm\1.2.18\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild remote: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. remote: MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, […]

Contextify@0.1.3安装:`node-gyp rebuild`失败1

我试图npm install jquery ,它试图安装它的依赖关系之一,Contextify失败。 所以我试图npm install contextify并得到这个错误。 大约一个小时左右的在线观看后,我一直无法find解决scheme。 我一直靠近,但不够近。 我的node.js运行在Ubuntu 12.04上,正如你在代码中看到的,node.js是0.8.11版本。 这里是尝试npm install jquery时的错误: gyp http GET http://nodejs.org/dist/v0.8.11/node-v0.8.11.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: socket hang up gyp ERR! stack at createHangUpError (http.js:1263:15) gyp ERR! stack at Socket.socketOnEnd (http.js:1351:23) gyp ERR! stack at TCP.onread […]