-
Notifications
You must be signed in to change notification settings - Fork 606
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
peoblem with instalation #320
Comments
Do you have OpenCV installed? |
I found a similar problem. I Installed opencv with 'sudo apt install python3-opencv python-opencv'. |
I have the same problem. Like @ntomer there is also only '/usr/include/opencv4/opencv2' instead of '/usr/include/opencv'. |
I think there has been a change of opencv version behind the scenes. Once I updated the path I had to modify the package that was using 'vision_opencv' with: And then remove some code which looks like it has been outdated. like the following lines: This all compiled before for me. When I run: suggesting the package is called 3.2 but programmatically identified as 4.0? That would explain why #321 fixes the problem. |
Hey. I have the same problem. Clone the 'vision_opencv' packet from @OAkyildiz into CMake Error at /home/nuc-falke/catkin_ws/src/vision_opencv/cv_bridge/CMakeLists.txt:16 (find_package):` What am I doing wrong? |
You might need to edit the required OpenCV version from 3 to 4 in the CMakeLists.
Another solution mentioned in #316 might be I hope this solves your problem. |
Is there a significant difference between I used I installed |
I understand. The file in which the error occurs is |
I am kind of confused with my installed opencv versions... And like @ntomer said, when requestin the apt for the installed packages, it lists: But before I changed the "REQUIRED OpenCV package from 3 to 4 on the CMakeLists.txt, the CMake Error said: CMake Error at vision_opencv/cv_bridge/CMakeLists.txt:16 (find_package): Could not find a configuration file for package "OpenCV" that is compatible with requested version "3". The following configuration files were considered but not accepted: /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake, version: 4.3.0 /usr/lib/x86_64-linux-gnu/cmake/opencv4/OpenCVConfig.cmake, version: 4.1.1 So it found version 4.3.0 and 4.1.1. However, with the command I got from #316 : @Benefe:
Or how do I remove/deinstall all opencv files from my system, so that I can do a plain reinstall? |
In fact it is quite confusing with your installed opencv versions and with the versions make can find. I think with your command:
you get the python wrapped opencv libraries. |
I fixed it with a small change in /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake. Just replacing opencv with opencv4 on line 96 so it becomes
Melodic installed with |
Nice! Thanks, I totally forgot about that. |
@espentrydal, thank you, that fix sounds reasonable as well. However, I actually decided to remove OpenCV completely and go back to version 3.4 for now, which works perfectly fine. But I will keep that in mind. Thanks to all from my side. |
I am looking into it right now, but what you are seeing might be the OpenCV that comes with ROS being linked |
I have installed OpenCV 4.1 again when I flashed my JetsonTX2 with Nvidia SDK manager. After installing ROS I was able to If you are trying to build other packages while having issues with this you can also use '--start-with' argument but it is more likely to be a CMakeFile error |
UPDATE: I received the same error. Removing built packages and rebuilding workspace solved it:
|
CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message):
Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir,
which is not found. It does neither exist as an absolute directory nor in
'${{prefix}}//usr/include/opencv'. Check the issue tracker
'https://github.com/ros-perception/vision_opencv/issues' and consider
creating a ticket if the problem has not been reported yet.
Where could be error ?
The text was updated successfully, but these errors were encountered: