-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
compile error with no match operator #300
Comments
hi, I have the same problem, and I use below function to workaround.
|
This error occurs in multiple places |
Solution by @PattyLiang is solving the issue. But also replace it in ORB_SLAM3/src/CameraModels/KannalaBrandt8.cpp |
You can add below code to KannalaBrandt8.h. namespace cv It will works for all same problems |
I also have the same problem, and by @piphagor18 is solving my errors(: no match for ‘operator/’ ) on LocalMapping.cc and KannalaBrandt8.cpp files. |
@PattyLiang and @piphagor18 Thanks for the solution. It works for me. |
Hi everybody, This is an issue related with the OpenCV version (you are likely using OpenCV 4.1 or 4.2). In those versions, the operator ‘operator/’ (operand types are ‘cv::Matx<float, 3, 1>’ and ‘float’) is not implemented for some reason. We recommend you upgrading your OpenCV version to, at least, 4.4. Best regards! |
for that you need the boost library. sudo apt install libboost |
Thanks~ method1:
method2:
or method3?
|
Hi,
I have the following compile error. Is that I missing any lib or dependency? Thanks
/mnt/c/Users/Kidd/github/ORB_SLAM3/src/LocalMapping.cc:628:49: error: no match for ‘operator/’ (operand types are ‘cv::Matx<float, 3, 1>’ and ‘float’)
x3D = x3D_h.get_minor<3,1>(0,0) / x3D_h(3);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
The text was updated successfully, but these errors were encountered: