Error installing ORB-SLAM2 on Windows

2019-09-19 09:15发布

问题:

I'm interested in ORB-SLAM2, So I searched and found this site https://github.com/Phylliida/orbslam-windows <<

so I read the README file and copied it, but I found these errors.

enter image description here

I already installed OPENCV on windows and I set up the environment variables well.

How can I fix errors?

回答1:

Try setting OpenCV_DIR in CMakeLists.txt SET("OpenCV_DIR" "C:/opencv")

If you want an automated installation, build setup for ORB-SALM2, we have it in this repo, scripts\windows\bootstrap.batbuilds opencv and dependencies using vcpkg and build.bat compiles ORB-SLAM2. Bootstrap usually takes time for first time!!



回答2:

1.Adding the variable to the system path like this.

2.Setting the variable by the cmake-gui.Then reconfigure.

3.Setting the include and lib path about opencv in the CMakeLists.txt manually.



标签: opencv cmake