Build error when npm install
See original GitHub issueMy ros2 is built from source, https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos I use the step in README, when I run npm install:
CXX(target) Release/obj.target/rclnodejs/src/addon.o
CXX(target) Release/obj.target/rclnodejs/src/executor.o
…/src/executor.cpp:17:10: fatal error: rcl/error_handling.h: No such file or directory
#include <rcl/error_handling.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
rclnodejs.target.mk:124: recipe for target ‘Release/obj.target/rclnodejs/src/executor.o’ failed
make: *** [Release/obj.target/rclnodejs/src/executor.o] Error 1
make: Leaving directory ‘/home/fuzhiyang/github/rclnodejs/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.15.0-42-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/fuzhiyang/github/rclnodejs
gyp ERR! node -v v11.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rclnodejs@0.7.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rclnodejs@0.7.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@yfzcopy0702 @eeyang92 If this issue in irreproducible, I am going to close it. And please wait for the patch which will fix #437, thanks!
v0.8.0 has just released, now you can enjoy your apps based on Crystal Clemmys 😆