Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error with mamba ROS2 env #25

Open
aweiu opened this issue Oct 1, 2024 · 1 comment
Open

Install error with mamba ROS2 env #25

aweiu opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aweiu
Copy link

aweiu commented Oct 1, 2024

Description

  • Library Version: 0.3.1
  • ROS Version: ros-humble-desktop
  • Platform / OS: macOS 14.5

And I have tried node v18、19...

Steps To Reproduce

  • Install & Config ROS2 env by robostack
  • mamba activate ros_env
  • npm install rclnodejs-cli -g

Expected Behavior
Install rclnodejs-cli success!

Actual Behavior

  • I have installed ros-humble-rcutils by mamba install ros-humble-rcutils
  • I can find the rcutils/logging_macros.h file in /opt/homebrew/Caskroom/miniforge/base/envs/ros_env/include/rcutils/rcutils/logging_macros.h
  • $AMENT_PREFIX_PATH: /opt/homebrew/Caskroom/miniforge/base/envs/ros_env
  • $CXXFLAGS: -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/ros_env/include
  • $CPPFLAGS: -D_FORTIFY_SOURCE=2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/ros_env/include

Error Log:

npm error code 1
npm error path /Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs/build'
npm error   CXX(target) Release/obj.target/rclnodejs/src/addon.o
npm error make: Leaving directory '/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error gyp info find Python using Python version 3.11.8 found at "/opt/homebrew/Caskroom/miniforge/base/envs/ros_env/bin/python3"
npm error gyp info spawn /opt/homebrew/Caskroom/miniforge/base/envs/ros_env/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/aweiu/Library/Caches/node-gyp/18.20.4/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/aweiu/Library/Caches/node-gyp/18.20.4',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/aweiu/Library/Caches/node-gyp/18.20.4/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../src/addon.cpp:17:
npm error ../src/macros.hpp:18:10: fatal error: 'rcutils/logging_macros.h' file not found
npm error    18 | #include "rcutils/logging_macros.h"
npm error       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 1 error generated.
npm error make: *** [rclnodejs.target.mk:148: Release/obj.target/rclnodejs/src/addon.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 23.5.0
npm error gyp ERR! command "/Users/aweiu/.nvm/versions/node/v18.20.4/bin/node" "/Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /Users/aweiu/.nvm/versions/node/v18.20.4/lib/node_modules/rclnodejs-cli/node_modules/rclnodejs
npm error gyp ERR! node -v v18.20.4
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
@aweiu aweiu added the bug Something isn't working label Oct 1, 2024
@aweiu aweiu changed the title Install error with mamba ros2 env Install error with mamba ROS2 env Oct 1, 2024
@aweiu
Copy link
Author

aweiu commented Oct 5, 2024

Hi @wayneparrott could you please take a look at this issue?🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant