Open JLBicho opened 11 months ago
I've managed to work around this error by compiling with an additional flag:
``colcon build --cmake-args ' -DCMAKE_CXX_FLAGS=-fpermissive'```
However, now I get a new error:
--- stderr: webrtc
/home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc
---
Finished <<< webrtc [7min 31s]
Starting >>> webrtc_ros
--- stderr: webrtc_ros
In file included from /home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc_ros/include/webrtc_ros/webrtc_client.h:7,
from /home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc_ros/include/webrtc_ros/webrtc_ros_server.h:6,
from /home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc_ros/src/webrtc_ros_server_node.cpp:2:
/home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc_ros/include/webrtc_ros/ros_video_renderer.h:19:48: warning: ISO C++ forbids declaration of ‘RTC_DISALLOW_COPY_AND_ASSIGN’ with no type [-fpermissive]
19 | RTC_DISALLOW_COPY_AND_ASSIGN(RosVideoRenderer);
| ^
/home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc_ros/src/webrtc_client.cpp:8:10: fatal error: webrtc/rtc_base/bind.h: No such file or directory
8 | #include <webrtc/rtc_base/bind.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/webrtc_ros_server_node.dir/build.make:167: CMakeFiles/webrtc_ros_server_node.dir/src/webrtc_client.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/webrtc_ros_server_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed <<< webrtc_ros [10.0s, exited with code 2]
I'm facing the same issue. Looking at installation scripts ( src/deps/webrtc_ros/webrtc/build/get_webrtc_source
) i found out the version with hash "93081d594f7efff72958a79251f53731b99e902b" does not have these files. I'm trying to find the closest hash with these files now.
I changed to the same version used in "develop" branch (f183d1d9966b312006e395dc4c270639b35d26de) and rebuild all the project from the ground. It worked for me.
Description Hello,
I'm trying to compile this package with ROS 2 and I get the error:
error: ISO C++ forbids declaration of `RTC_DISALLOW_COPY_AND_ASSIGN` with no type [-fpermissive]
Is there any additional parameter needed in the compilation steps? Am I missing libraries, dependencies or something like this?
Thank you!
Steps To Reproduce
Expected Behavior Compilation succeeds.
Actual Behavior Error during compilation.