node-gyp

Node-gyp/C++ import shared library (.so)

我的梦境 提交于 2020-01-03 16:56:59
问题 Importing a shared library (.so) doesn't seem to be an easy task. I tried to follow the instructions in this post, but I really can't get it to work. Building without the library RF24 is working. Followed their build instructions which produced the following filesets in the /usr/local/lib folder librf24-bcm.so librf24.so librf24.so.1 librf24.so.1.3 librf24.so.1.3.1 node_modules python2.7 python3.5 In my .cpp file I include the library like this #include <RF24.h> // also tested "" instead of <

Node-gyp/C++ import shared library (.so)

China☆狼群 提交于 2020-01-03 16:56:19
问题 Importing a shared library (.so) doesn't seem to be an easy task. I tried to follow the instructions in this post, but I really can't get it to work. Building without the library RF24 is working. Followed their build instructions which produced the following filesets in the /usr/local/lib folder librf24-bcm.so librf24.so librf24.so.1 librf24.so.1.3 librf24.so.1.3.1 node_modules python2.7 python3.5 In my .cpp file I include the library like this #include <RF24.h> // also tested "" instead of <

Windows 8 : `node-gyp rebuild` Exit status 1 installing contextify as dependency of zombie

穿精又带淫゛_ 提交于 2020-01-02 08:11:38
问题 I'm trying to install zombie js, and get this error: > contextify@0.1.8 install C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify > node-gyp rebuild Das System kann den angegebenen Pfad nicht finden. C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify>node "C:\Program Files (x86)\nodejs\nod e_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp

How to build nodejs C++ addon depending on a shared library with relative location

半城伤御伤魂 提交于 2020-01-01 18:17:55
问题 I'm trying to build a node.js C++ using node-gyp but can't figure out how to specify the -Wl,-rpath,$ORIGIN so that when loaded from node it could find shared object library that is in the same directory as addon.node . I have tried setting my binding.gyp like this: "libraries": [ "-L../../install_release_x64/", "-llibppp" ], "ldflags": [ "-Wl,-rpath,'$ORIGIN'" ], "cflags_cc": [ "-fexceptions", "-fPIC", "-Wno-unknown-pragmas" ] but when I run $ readelf -d addon.node the result is like this:

How to build nodejs C++ addon depending on a shared library with relative location

假如想象 提交于 2020-01-01 18:17:48
问题 I'm trying to build a node.js C++ using node-gyp but can't figure out how to specify the -Wl,-rpath,$ORIGIN so that when loaded from node it could find shared object library that is in the same directory as addon.node . I have tried setting my binding.gyp like this: "libraries": [ "-L../../install_release_x64/", "-llibppp" ], "ldflags": [ "-Wl,-rpath,'$ORIGIN'" ], "cflags_cc": [ "-fexceptions", "-fPIC", "-Wno-unknown-pragmas" ] but when I run $ readelf -d addon.node the result is like this:

node-gyp rebuild error while installing node modules

ε祈祈猫儿з 提交于 2019-12-31 07:08:08
问题 I tried installing zerorpc package on node using 'npm install zerorpc' and I am getting following error. The error is because node-gyp fails to rebuild. npm http GET https://registry.npmjs.org/zerorpc npm http 304 https://registry.npmjs.org/zerorpc npm http GET https://registry.npmjs.org/underscore/1.3.3 npm http GET https://registry.npmjs.org/node-uuid/1.3.3 npm http GET https://registry.npmjs.org/msgpack/1.0.2 npm http GET https://registry.npmjs.org/zmq npm http 304 https://registry.npmjs

node-gyp rebuild error while installing node modules

て烟熏妆下的殇ゞ 提交于 2019-12-31 07:06:02
问题 I tried installing zerorpc package on node using 'npm install zerorpc' and I am getting following error. The error is because node-gyp fails to rebuild. npm http GET https://registry.npmjs.org/zerorpc npm http 304 https://registry.npmjs.org/zerorpc npm http GET https://registry.npmjs.org/underscore/1.3.3 npm http GET https://registry.npmjs.org/node-uuid/1.3.3 npm http GET https://registry.npmjs.org/msgpack/1.0.2 npm http GET https://registry.npmjs.org/zmq npm http 304 https://registry.npmjs

How to solve 'node-gyp rebuild' issue on Windows 10?

我们两清 提交于 2019-12-30 16:27:47
问题 As part of trying to use a node NPM dependency in a project, I get a node-gyp rebuild issue, which I have reported. I am aware of the solution in this SO question, but it does not work for Windows 10 (I am on 32 bits, I don't know whether this is relevant). Windows SDK 7.1 (and others) won't install. Does anyone have an operational solution for Windows 10? Udpate After trying npm install <module name> --msvs_version=2013 , I get a new error message: 回答1: To install node addons, you need to

Installing node-memwatch on CentOS 6, node-gyp rebuild error

妖精的绣舞 提交于 2019-12-30 07:53:09
问题 When trying to install memwatch using "npm install memwatch", I get this error: I have CentOS6 with python 2.6.6 installed on server. memwatch@0.2.2 install /home/[[username]]/public_html/sockets/node_modules/memwatch node-gyp rebuild gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT gyp ERR! stack at errnoException (net.js:905:11) gyp ERR! stack at Object.afterConnect as oncomplete gyp ERR! System Linux 2.6.32-504.3.3.el6.x86

Installing node-memwatch on CentOS 6, node-gyp rebuild error

巧了我就是萌 提交于 2019-12-30 07:53:05
问题 When trying to install memwatch using "npm install memwatch", I get this error: I have CentOS6 with python 2.6.6 installed on server. memwatch@0.2.2 install /home/[[username]]/public_html/sockets/node_modules/memwatch node-gyp rebuild gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT gyp ERR! stack at errnoException (net.js:905:11) gyp ERR! stack at Object.afterConnect as oncomplete gyp ERR! System Linux 2.6.32-504.3.3.el6.x86