Open GTeref opened 6 months ago
Hello, I'm facing the same issue to compile on Ubuntu 22.04 and ROS 2 Humble ! Were you able to solve this ?
CMake Error at CMakeLists.txt:41 (message): cannot fetch GN build tool
Try adding execute privilege to the scripts within ~/webrtc_ws/src/webrtc/build
chmod +x ~/webrtc_ws/src/webrtc/build/get_*
chmod +x ~/webrtc_ws/src/webrtc/build/prepare_webrtc_build
This might solve this problem, but it will not solve all the errors that might occur when building the package.
I made some progress on this:
in webrtc_ros/webrtc/build/get_gn
you have to remove python
in L3 and replace python
with python3
on L29.
Additionally I downloaded gn
and ninja
manually and added it to the path. Then deleted the webrtc and depot_tools folders and now it has been building for about 5 minutes...
(ROS 2 Jazzy though)
Additional changes:
#include <cstdint>
utcfromtimestamp
with fromtimestamp
on L318ament_index_cpp::ament_index_cpp
in L70Invoke
was renamed to BlockingCall
and signature changed a lot.[t = (WebrtcRosServer*)_this, channel]{t->handle_new_signaling_channel(channel);}
See commit in webrtc repo.At this point the webrtc build succeeds, but now there are tons of errors in webrtc_ros (e.g., webrtc/rtc_base/bind.h doesn't exist anymore etc.)
I got it to build now
Description Hello, I am trying to compile this package with ROS2 and I get the following error:
Steps To Reproduce
colcon build
Expected Behavior Builds successfully
Actual Behavior CMake error
Note I have tried updating the commit hashes to the latest commits in the
build/webrtc
folder, inget_gn
andget_webrtc_ros
, but that didn't work. From past issues/pull requests, it seems that updating to a newer version of WebRTC is not as trivial as this.