From 0d2e9911175672c6965b087c3a439762fd6891ac Mon Sep 17 00:00:00 2001 From: Vinh-Thuyen <34017414+ntvthuyen@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:57:35 +0800 Subject: [PATCH] Update kimera_vio_install.md: modify open cmake command Modify cmake command to fix opencv2/viz.hpp header missing error --- docs/kimera_vio_install.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/kimera_vio_install.md b/docs/kimera_vio_install.md index 0a3dadba..013a86b4 100644 --- a/docs/kimera_vio_install.md +++ b/docs/kimera_vio_install.md @@ -111,14 +111,14 @@ sudo make -j $(nproc) install Note that you can use `apt-get install libopencv-dev libopencv-contrib-dev` on 20.04 instead of building from source. -Download OpenCV and run cmake: +Download OpenCV and [opencv_contrib](https://github.com/opencv/opencv_contrib) and run cmake: ```bash git clone https://github.com/opencv/opencv.git cd opencv git checkout tags/4.2 # 3.4 or higher should be fine mkdir build cd build -cmake -DWITH_VTK=On .. # Use -DWITH_TBB=On if you have TBB +cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules -DWITH_VTK=On .. # Use -DWITH_TBB=On if you have TBB ``` Finally, build and install OpenCV: @@ -142,7 +142,7 @@ sudo make -j $(nproc) install Finally, go to the OpenCV build folder and build and install OpenCV: ```bash -cmake -DWITH_VTK=On .. # now VTK should be correctly detected, Use -DWITH_TBB=On if you have TBB +cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules -DWITH_VTK=On .. # now VTK should be correctly detected, Use -DWITH_TBB=On if you have TBB sudo make -j $(nproc) install ```