-
Notifications
You must be signed in to change notification settings - Fork 605
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
Problem with the Cmake issue Involving cv_bridge #329
Comments
same here |
I've had the same problem.. anyone have an idea of what's going on? |
@isokar @debackerj93 I would like to know if you guys using the same specification as me? If yes, then the following information might help you guys with solving the problem. Jetson Nano has changed the file name from opencv to opencv4. However, in the cv_bridgeConfig.cmake file, at line 100+ to 113 (forgot which line). The code still says to include opencv file. There is also no way to change it since it is a root file on the Jetson Nano. For my case, It is important to know that you need to install the following by running the following codes in the terminal: Thanks, everyone who has indicated that you shared the same problem as me. I really hope the above information helps. I know that it is very frustrating as well because you cannot implement the new codes. |
Hi @henryfhq-drone. I had the same problem. I have installed ros-melodic-vision-opencv and ros-melodic-cv-bridge with apt. I'm running on Jetson Nano.
Can you explain me? Thank you. |
Hi @cafgiu Thanks for your message. Regarding the statement on source building the opencv 3.4.0. What I mean is you download the opencv using the link here: https://github.com/kyamagu/mexopencv/wiki/Installation-%28Linux%2C-MATLAB%2C-OpenCV-3%29#1-opencv Note that you only follow the first point However, if you encounter errors, with the code as shown below: Try to change the errant line to include < eigen3/ > at the front after the #include. Don't worry, I am also a newbie to it as well. |
Thanks for your answer. I have followed your steps but I have the below error Can you help me? |
@cafgiu Do you have python 3 installed? (version at least 3.6 if I am not wrong) If yes then that seems weird |
The command apt list --installed python* show me the below packages installed |
I had this same issue. I tracked it down to using Nvidia SDKManager to Flash an Nvidia Jetson / Xavier. I was trying to use Jetpack 4.3 or 4.4, and in the process it replaced OpenCV 2 with OpenCV 4; this caused the cv-bridge not found issue. Not knowing what had installed opencv4, I removed all ros-packages / opencv and reinstalled and was able to build but I was left without CUDA; upon using SDKManager to reinstall the cuda toolchain I ran into the same issue. I found that if I installed Jetpack 4.2 using SDKManager it would remove opencv4 and resolve the issue. |
I have resolved commenting the row 11 12 in the CMakeLists.txt in the package cv_bridge
and adding 0 at the #define NUMPY_IMPORT_ARRAY_RETVAL in the file /usr/include/python2.7/numpy/__multiarray_api.h |
Same issue here on a Xavier NX with Jetpack 4.4 DP. I was able to resolve it by downgrading opencv-dev.
Install the latest one before 4.0. For me it was: |
For opencv issue, i tried different method. It resolves the errors. $sudo ln -s /usr/include/opencv4/ /usr/include/opencv |
Hi @jebasamuel. I tried this method but it not resolve the errors for me.
|
@cafgiu Do you still have cv_bridge.cmake error saying unable to find opencv? Could you please post the catkin build log? |
Hello, i have the same problem like you. i solve that issue with change the boost requirement with python major find_package(Boost REQUIRED python3) |
Can confirm that this works. |
I can confirm that this could resolve the issue in some situations with Nvidia Jetson TX2. But in my case, the ros packqage (LeGo-LOAM) that I am compiling needs the #include <opencv/cv.h> and this not exist in opencv4. |
i am facing exact issues as @henryfhq-drone and @cafgiu . |
Solution I have written here for reference @siddharthcb |
Hello, I had similar issues described above. With compiling cv_bridge with OpenCV Version 4.5.1 on a Jetson Nano (Ubuntu 18 and Melodic Distro). I just installed ROS base and not the whole distro. First error while building was with libboos library for python3 The way I solved this issues (This way is just for one workspace)
I hope this may be helpfull for anyone who has problems, building cv_bridge with a newer version of OpenCV. |
Hi @vrabaud
I have Installed the cv_bridge thing to my catkin_ws and I tried to do catkin_make for a github code that I have to download as part of my project.
However, I ran into a cmake issue that says that the usr/include/opencv is not found. The error is in the picture below:
I have tried download the opencv file but it is to no avail. and I have also tried to change a cmake file but I cannot edit.
I don't know is there an issue on the cv_bridge or is there something else that is missing?
I'm running on Jetson Nano which comes with opencv version 4.1.1. OS version is Ubuntu 18.04 and my ROS version is melodic.
Thank you very much.
The text was updated successfully, but these errors were encountered: