Skip to content
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

Update kimera_vio_install.md: modify opencv cmake command #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/kimera_vio_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<path to opencv_contrib>/opencv_contrib/modules -DWITH_VTK=On .. # Use -DWITH_TBB=On if you have TBB
```

Finally, build and install OpenCV:
Expand All @@ -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=<path to opencv_contrib>/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
```

Expand Down