Open constructive-realities opened 6 years ago
I think fatal error: opencv2/opencv.hpp
has nothing to do with your openCV version. It just can't find the directory. Put this into your CMakeLists.txt include_directories("PATH_TO_OPEN_CV_Installation_Folder/include")
. There you should find opencv.hpp
You can install different versions of opencv alongside, but I would recommend to do that in your home directory.
CMAKE_INSTALL_PREFIX
to your opencv-install-folderln -s Your_Open_CV_Version opencv_link
. Now you can switch between the versions by changing the destination of opencv_linkset(CMAKE_PREFIX_PATH PathTo_opencv_link)
find_package(OpenCV YourVersion)
in CMakeLists, you always have to change it to the version you want to compile with.I wasn't able to compile fastfusion with opencv 3.3.1, but with 3.2.0 it worked.
Greeting. I'm trying to build fast fusion on a host with ROS kinetic installed. The instructions seem pretty straightforward, however I ran into what looks like an opencv (v2 vs v3) mismatch that I could use a few pointers on to resolve
following the readme:
cmake .
and then
make
Looking online for this error, it appears to be fairly common when the host has a newer version of opencv. my search also revealed that it's non-trivial to install both versions alongside each other without breaking lots of stuff.
Is there a path here to either updating fast fusion to work out of the box with a newer version of opencv or guidance on how to satisfy the requirements withouth breaking a hosts other opencv dependencies?
I can help update the readme so that other running ros can be aware of a solution.