Skip to content

Compilation Error Ubuntu 20.04 ROS 2: ISO C++ forbids declaration of ‘RTC_DISALLOW_COPY_AND_ASSIGN’ with no type #70

@JLBicho

Description

@JLBicho

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!

  • Library Version: develop-ros2
  • ROS Version: ROS 2 Foxy
  • Platform / OS: Ubuntu 20.04

Steps To Reproduce

  1. Clone the repo
  2. Compile with colcon build
  3. Wait around 20 mins
  4. Error regarding RTC_DISALLOW_COPY_AND_ASSIGN

Expected Behavior
Compilation succeeds.

Actual Behavior
Error during compilation.

[Processing: webrtc]omplete] [webrtc:build 61% - 19min 29.3s]
[Processing: webrtc]                                         
[Processing: webrtc]                                         
[Processing: webrtc]                                          
--- stderr: webrtc                                            
Cloning into 'depot_tools'...
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Updating depot_tools...
Updating depot_tools...
Updating depot_tools...
/home/jose/ws/webrtc_ros/src/webrtc_ros/webrtc
CMake Warning:
  Manually-specified variables were not used by the project:

    AMENT_CMAKE_SYMLINK_INSTALL


---
Finished <<< webrtc [21min 20s]
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: error: ISO C++ forbids declaration of ‘RTC_DISALLOW_COPY_AND_ASSIGN’ with no type [-fpermissive]
   19 |   RTC_DISALLOW_COPY_AND_ASSIGN(RosVideoRenderer);
      |                                                ^
make[2]: *** [CMakeFiles/webrtc_ros_server_node.dir/build.make:63: CMakeFiles/webrtc_ros_server_node.dir/src/webrtc_ros_server_node.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.2s, exited with code 2]

Summary: 2 packages finished [21min 30s]
  1 package failed: webrtc_ros
  2 packages had stderr output: webrtc webrtc_ros

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions