Skip to content

OpenCV 4.x+ requires enabled C++11 support ROS2 Foxy #361

@blakermchale

Description

@blakermchale

Describe the bug
When I build the foxy branch of darknet_ros with CUDA support I get the following errors:

/usr/include/opencv4/opencv2/core/cvdef.h:704:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
  704 | #  error "OpenCV 4.x+ requires enabled C++11 support"
      |    ^~~~~
/usr/include/opencv4/opencv2/core/cvdef.h:710:10: fatal error: array: No such file or directory
  710 | #include <array>

To Reproduce
Steps to reproduce the behavior:

  1. Clone the foxy branch
  2. colcon build -DCMAKE_BUILD_TYPE=Release
  3. See error

Expected behavior
I expect ROS2 Foxy to compile with CUDA support.

System (please complete the following information):

  • OS: Ubuntu 20.04
  • ROS version: Foxy
  • GPU when relevant: NVIDIA RTX 2080 SUPER

Additional context
I noticed that this problem was fixed for Noetic in #308.

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