-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
error "OpenCV 4.x+ requires enabled C++11 support" #200
error "OpenCV 4.x+ requires enabled C++11 support" #200
Comments
You can try have a look at pull request #202 by @kunaltyagi. Compiled the version under this fork and it solved the compilation issue. Hope this helps. |
which openCV version do you use?? |
I use OpenCV@HEAD |
@kunaltyagi oh! thank you for answering. I installed opencv3.4.6, after catkin_make darknet_ros, I met error "OpenCV 4.x+ requires enabled C++11 support" can I you your solution(256ea50 by following this commit) to solve my problem?? |
I want to use darknet_ros to detect something!! |
You have OpenCV 4 not 3 installed, and yes, my fork works with latest OpenCV and ROS. If you want to work on darknet directly, I'd recommend https://github.com/alexeyab/darknet instead. |
Oh, I'm sorry for bothering you |
@Ajaygirish1 and @mywnajsldkf did you end up finding a solution? I am facing the same problems. I'm using Ubuntu 18.04 and OpenCV 3.4.0 for this purpose. |
@prit-ubuntu Do you want to use OpenCV 3.4.0 for using darknet_ros? If you want it, I recommend following this procedure
|
@mywnajsldkf so basically the solution you mentioned above worked for you to run darknet_ros? Yes, i do want to use OpenCV 3.4.0 for darknet_ros. |
@prit-ubuntu It is best for me! |
You can also use my fork (I really should move it to point to AlexyAB's implementation) |
@mywnajsldkf and @kunaltyagi I'm happy to inform you that I have finally managed to compile darknet_ros on my system! Thanks for your help. |
hi, I am getting the same issue. Can I know how to solve it? @kunaltyagi I have see your fork, can I know how to install it? |
There are other more up-to-date PRs. My fork has been unmaintained for a while so I personally wouldn't recommend it. See #257 and @230 However, my fork still works if you still want to use it. Please use the opencv4 branch, and clone it (with submodules) in your workspace (or underlay of that workspace) 😄 |
@kunaltyagi I already use openCV4 but it still have error |
Support for OpenCV4 seems to be lagging a little. Maybe @mbjelonic has an indication of if and when it might come. |
Hey
all,I am facing the below error,
error "OpenCV 4.x+ requires enabled C++11 support" while executing catkin make,
I have tried inserting
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
in Cmake.txt of darknet_ros node but still doesnt work.
CMakeLists.txt
The text was updated successfully, but these errors were encountered: