-
Notifications
You must be signed in to change notification settings - Fork 70
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 compilation error #27
Comments
This does seem like a dependency issue with the setup. That source file does make use of...
Can you make sure you have the setup as described here. One thing that causes issues is to make sure you have the updated Gazebo 9 from OSRF. It should be @BruceMty Do we need the sonar_dave_plugins anymore? It look like this is a copy of the source file from the uuv_simulator Can we remove that part of the repository? |
@BruceMty @bsb808 Upgrading to Gazebo 9.13.2 (should be the latest) still raised the same compilation issue. The output of "pkg-config --modversion opencv" also indicates 3.2.0. It turned out CV_AA is defined in "opencv2/imgproc/imgproc_c.h". When I added include <opencv2/imgproc/imgproc_c.h>, it compiled sucdessfully. |
That is strange that we aren't seeing the same thing - suggests that the development environment is not equivalent. This is a perfect reason why we need some CI/CD to provide checks for this in a clean dev. env. I suggest we incur the technical debt and use this as our first test case of @PenguineZhang submitting a PR through gitlab that eventually makes it to the github repo. |
@bsb808 Is there a mirror repo already at Gitlab? I have not received the invite to Gitlab yet. |
@PenguineZhang I just got it set up and sent you an invite. Let me know if you have any trouble. |
First, adding the Second, for the sake of looking into the issue, I have 3.2.0 installed from binaries in a homemade Docker image, and I don't have compiler errors. Bruce's command above gives me 3.2.0 as well. Do you have two versions of OpenCV installed? 4.1.0 from source (as I think you mentioned), and 3.2.0 from binaries (along with other things like ROS that might have installed it). It could be that pkg-config picked up your binary install, and the compiler picked up the source install and produced the error. What if you add the following line in your
and see what it says at compile time? That would tell us the version of OpenCV that CMake is getting and might give us some clues. Third, what is the command you ran to compile? Usually, this kind of discrepancy can happen if that header file is indirectly included by some other file being compiled in the collection - I'm compiling everything in the workspace, so one of the files could have included a file that includes However, that doesn't seem the case here. I |
Closing as issue seems to have been resolved. Feel free to reopen if it crops up again. |
Is there opencv version requirement to compile the code? My workaround is to change CV_AA to CV_L1 as suggested by the compiler. My machine is using OpenCV 4.1.0. See attached and let me know what you think.
The text was updated successfully, but these errors were encountered: