Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
blakermchale opened this issue Nov 24, 2021 · 5 comments
Closed

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

blakermchale opened this issue Nov 24, 2021 · 5 comments
Labels

Comments

@blakermchale
Copy link

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.

@blakermchale
Copy link
Author

Just saw #257 and the discussion at the end that referenced this fork https://github.com/ajaypaul2008/darknet_ros/tree/foxy

@Ar-Ray-code
Copy link

Please try to use my fork :) .

@blakermchale
Copy link
Author

Thanks! I switched to your branch on the PR you made and it works well!

@Ar-Ray-code
Copy link

Please close this.

@blakermchale
Copy link
Author

Closed since #319 will fix this once it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants