1 | initial version |
If you want to use an OpenCV version different than the one shipped with ROS:
CMAKE_INSTALL_PREFIX
a local directory, e.g.: ~/src/opencv4/build/install
sudo apt-get remove ros-kinetic-opencv3
ros-kinetic-opencv3
and that will be uninstalledcatkin_ws/src
:Something like:
git clone https://github.com/ros-perception/image_pipeline.git
git clone https://github.com/ros-perception/image_transport_plugins.git
git clone https://github.com/ros-perception/vision_opencv.git
git clone https://github.com/ros-visualization/rqt_image_view.git
etc...
Go to your catkin_ws
:
catkin_make VERBOSE=1 -j4 -DCMAKE_BUILD_TYPE=Release --cmake-args -DOpenCV_DIR=~/src/opencv4/build/install
2 | No.2 Revision |
If you want to use an OpenCV version different than the one shipped with ROS:
ROS image_transport
that uses OpenCV 3.3.1, so you have to uninstall anything that is related to OpenCV 3.3.1 in ROS and build everything with the same OpenCV versionCMAKE_INSTALL_PREFIX
a local directory, e.g.: ~/src/opencv4/build/install
sudo apt-get remove ros-kinetic-opencv3
ros-kinetic-opencv3
and that will be uninstalledcatkin_ws/src
:Something like:
git clone https://github.com/ros-perception/image_pipeline.git
git clone https://github.com/ros-perception/image_transport_plugins.git
git clone https://github.com/ros-perception/vision_opencv.git
git clone https://github.com/ros-visualization/rqt_image_view.git
etc...
Go to your catkin_ws
:
catkin_make VERBOSE=1 -j4 -DCMAKE_BUILD_TYPE=Release --cmake-args -DOpenCV_DIR=~/src/opencv4/build/install
3 | No.3 Revision |
If you want to use an OpenCV version different than the one shipped with ROS:
ROS image_transport
that uses OpenCV 3.3.1, so you have to uninstall anything that is related to OpenCV 3.3.1 in ROS and build everything with the same OpenCV versionCMAKE_INSTALL_PREFIX
a local directory, e.g.: ~/src/opencv4/build/install
sudo apt-get remove ros-kinetic-opencv3
ros-kinetic-opencv3
and that will be uninstalledcatkin_ws/src
:Something like:
git clone https://github.com/ros-perception/image_pipeline.git
git clone https://github.com/ros-perception/image_transport_plugins.git
git clone https://github.com/ros-perception/vision_opencv.git
git clone https://github.com/ros-visualization/rqt_image_view.git
etc...
Go to your catkin_ws
:
catkin_make VERBOSE=1 -j4 -DCMAKE_BUILD_TYPE=Release --cmake-args -DOpenCV_DIR=~/src/opencv4/build/install