How to Run Example Codes in Linux
Preparation
- Install CMake, OpenCV, and Ceres Solver
- Download example codes
Running Examples
- Unzip example codes at
your_folder - Build the example codes as like the following commands at
your_folder
mkdir build
cd build
cmake ..
make install- Enjoy the examples at
your_folder/bin
How to Run Example Codes with Microsoft Visual Studio
Preparation
- Install Microsoft Visual Studio (shortly MSVS)
- Visual Studio Community is free for students, open-source, and individual developers.
- We recommend the most recent version of MSVS (at least >= 2015) for binary compatibility.
- If you want to use an older version of MSVS (<= 2013), please install Microsoft Visual C++ Redistributable for 2015-2019 (x64). Additionally please remember that you can only build examples in release mode, not debug mode.
- Download example codes, OpenCV binaries, and Ceres Solver binaries
Running Examples
- Unzip example codes and binaries at
your_folder- OpenCV and Ceres Solver will be located at
your_folder\EXTERNALfolder. Please ignore duplicatedLICENSEfiles.
- OpenCV and Ceres Solver will be located at
- Run your Visual Studio and open the solution file,
your_folder\msvs\3dv_tutorial.sln- Or simply double-click
your_folder\msvs\3dv_tutorial.slnfile (if it is associated with MSVS)
- Or simply double-click
- Build the example codes in the solution (Menu > Build > Build Solution)
- Their executable files will be located at
your_folder\binfolder.
- Their executable files will be located at
- Enjoy the examples