npm i in docker says: cannot convert ‘rcutils_allocator_t’ to ‘rcl_context_t*’
See original GitHub issueHi, i get the following error when i try to npm install in the official ros2 docker image:
make: Entering directory '/ros2-web-bridge/node_modules/rclnodejs/build'
CXX(target) Release/obj.target/rclnodejs/src/addon.o
CXX(target) Release/obj.target/rclnodejs/src/executor.o
../src/executor.cpp: In static member function ‘static void rclnodejs::Executor::Run(void*)’:
../src/executor.cpp:96:66: error: cannot convert ‘rcutils_allocator_t’ to ‘rcl_context_t*’ for argument ‘7’ to ‘rcl_ret_t rcl_wait_set_init(rcl_wait_set_t*, size_t, size_t, size_t, size_t, size_t, rcl_context_t*, rcl_allocator_t)’
rcl_get_default_allocator());
rclnodejs@0.9.0 seems to install fine
ros2-web-bridge version: 0.2.5
How should i continue debugging this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
fails to invoke npm when used in run-scripts #1734 - GitHub
I'm having a similar issue. We're seeing it when we try to do an npm install from the Docker command, when we set...
Read more >Cannot find module for a node js app running in a docker ...
When I do docker-compose up, I get this error: backend_1 | npm info it worked if it ends with ok backend_1 | npm...
Read more >Docker and private modules | npm Docs
You cannot install private npm packages in a Docker container using only runtime variables. Consider the following Dockerfile: FROM node.
Read more >10 best practices to containerize Node.js web applications ...
Use small Docker images — this will translate to a smaller software footprint on the Docker image reducing the potential vulnerability vectors, ...
Read more >docker node ls
docker node ls: Lists all the nodes that the Docker Swarm manager knows about. You can filter using the `-f` or `--filter` flag....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you! The install finishes without error with ros2-web-bridge - https://github.com/RobotWebTools/ros2-web-bridge/commit/2fef243963ee1ad7a0a0568eda2d430f8729f5d1 rclnodejs - https://github.com/RobotWebTools/rclnodejs/commit/d63edca186997e6c682fc690218ab3f06b245a30 ros2 image - april11 nightly build
I see. I suggest you install
rclnodejs
from github directly, e.g. open thepackage.json
of your app, and add the line below to replace the original dependency:"rclnodejs": "RobotWebTools/rclnodejs"
This should curb the compiling error.