ros-industrial / ros2_canopen

CANopen driver framework for ROS2
https://ros-industrial.github.io/ros2_canopen/manual/rolling/
131 stars 55 forks source link

Problem building lely_core_libraries #177

Closed jonaskonig closed 1 year ago

jonaskonig commented 1 year ago

Describe the bug When building via colcon build the following output is generated:

Starting >>> lely_core_libraries
Starting >>> canopen_interfaces
Starting >>> roboter_sensor_controller
Starting >>> rplidar_ros
--- stderr: lely_core_libraries                                                                                                                                                
fatal: not a git repository (or any of the parent directories): .git
gmake[2]: *** [CMakeFiles/upstr_lely_core_libraries.dir/build.make:125: upstr_lely_core_libraries-prefix/src/upstr_lely_core_libraries-stamp/upstr_lely_core_libraries-update] Error 128
gmake[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/upstr_lely_core_libraries.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< lely_core_libraries [0.32s, exited with code 2]

I don't understand what that means and how to fix it.

Setup:

hellantos commented 1 year ago

Could it be that you are not connected to www while building? Lely_core_libraries package is a colcon wrapper around an external lib, that gets pulled during build.

jonaskonig commented 1 year ago

No, there is a working internet connection. It can't find the reference where to pull from. I re-cloned the repo, but this did not change the behavior.

jonaskonig commented 1 year ago

I am trying to figure out how and why. But after completely uninstalling ros2 and reinstalling it, it now works again.

hellantos commented 1 year ago

Interesting. But great that it now works!

jclinton830 commented 1 year ago

I have the same exact problem. Is there any other way to fix this without having to reinstall ROS2?

Edit:

Not happening when using the humble branch. Only happening in master.