- Install Microsoft Visual Studio (shortly MSVS)
- 📝 Note) Microsoft Visual Studio Community is free for students, open-source contributors, and individual developers.
- Install Git and CMake
- You need to add their directory to PATH environment in Windows.
- Install vcpkg (more details)
- You need to move your working directory where you want to install vcpkg (I assume your working directory as
C:/
).
git clone https://github.com/Microsoft/vcpkg.git .\vcpkg\bootstrap-vcpkg.bat
- You need to move your working directory where you want to install vcpkg (I assume your working directory as
- Install OpenCV and Ceres Solver using vcpkg
cd vcpkg vcpkg install opencv[world,contrib]:x64-windows --recurse vcpkg install ceres[suitesparse,cxsparse,eigensparse,tools]:x64-windows vcpkg integrate install
- Clone the repository:
git clone https://github.com/mint-lab/3dv_tutorial.git
- You need to move your working directory where you want to copy the repository.
- Or you can download example codes and slides as a ZIP file and unzip it where you want.
- Generate MSVS solution and project files
- You need to specify the vcpkg directory where you installed it. (I assume you install it at
C:/
)
cd 3dv_tutorial mkdir build cd build cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
- You need to specify the vcpkg directory where you installed it. (I assume you install it at
- Run your MSVS and open the generated solution file,
build/3dv_tutorial.sln
. - Build the example codes in the solution (Menu >
Build
>Build Solution
) - Run the examples using
F5
after specify your target as the startup project (Project Context Menu >Set as Startup Project
)
- Install GCC, Git, CMake, OpenCV, and Ceres Solver
- Clone the repository:
git clone https://github.com/mint-lab/3dv_tutorial.git
- You need to move your working directory where you want to copy the repository.
- Or you can download example codes and slides as a ZIP file and unzip it where you want.
- Generate
Makefile
and project filescd 3dv_tutorial mkdir build cd build cmake .. make install
- Run the examples