-
Notifications
You must be signed in to change notification settings - Fork 53
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" #13
Comments
hello, I met the same issue, did u solve it? |
Ok,I solve it. Modify the cvbridgeConfig.cmake file,change the SET_OPENCV_DIR to the path of opencv 3.x.x |
Hi fjlv520, I met same issue with Jetson Nano, image is Jetpack4.5.1. Thanks! |
@zeta0707 Yes, I installed opencv3.4.1 additionally. |
I delete pre-installed opencv4.1.1, then installed opencv3.4.6 into /usr/local. Thanks! |
same issue! |
I want to work with yolov4 with opencv4, leggedrobotics branch support opencv4 but not yolov4 and Tossy0423 branch support yolov4 but not opencv4. |
Could you eloborate the steps, please? I am having the same issue. |
@fettahyildizz I got it running by following the below steps. Just install OpenCV 3 and changed cvbridge opencv path. |
@fettahyildizz Installing OpenCV 3.4.6 (along with previous '4.5.3') cd /usr/include/
Now lets check if we can import previous version of opencv i.e 4.5.3 python3
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation. Then run this: Now, Lets change opencv version in cv_bridge |
@iamrajee wow you're a life saver. Thanks a lot for detailed explanations. I will try it on monday. |
@iamrajee I will be using this package on Ros-Melodic therefore, I will run it on Python 2.7. I am going to change every "pip3" command to "pip" while following your steps. |
A bit late but I found an easier fix was using |
Is there any way to get it work with OpenCV 4.x itself, like by adding
What is the root problem here? Could somebody elaborate? Thank you! |
@iamrajee Did you solve the issue? I am having the same problem. |
After a while I revisited this issue and finally able to build and run on ROS noetic + CUDA 12.2 + opencv4+ |
When I catkin_make,
the error "/usr/include/opencv4/opencv2/core/cvdef.h:690:4: error: #error "OpenCV 4.x+ requires enabled C++11 support" occurs. I have tried all ways I can search online, but I cannot solve the problem.
Could you give some advice?
Thank you
The text was updated successfully, but these errors were encountered: