forked from soeroesg/ORB_SLAM3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_win.cmd
More file actions
32 lines (22 loc) · 754 Bytes
/
build_win.cmd
File metadata and controls
32 lines (22 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
:: NOTE: dependencies are assumed to be installed to this folder.
:: Change according to your paths.
set ORBSLAM3_DEPENDENCIES_INSTALL_DIR="C:\dev\slamtest\install"
@echo "ORBSLAM3_DEPENDENCIES_INSTALL_DIR: %ORBSLAM3_DEPENDENCIES_INSTALL_DIR%"
set CMAKE_EXECUTABLE="C:\Program Files\CMake\bin\cmake.exe"
set GENERATOR_NAME="Visual Studio 16 2019"
set GENERATOR_PLATFORM="x64"
@echo "Uncompress vocabulary ..."
cd Vocabulary
tar -xf ORBvoc.txt.tar.gz
cd ..
@echo Configuring and building ORB_SLAM3 ...
mkdir build
cd build
%CMAKE_EXECUTABLE% .. ^
-G%GENERATOR_NAME% ^
-A%GENERATOR_PLATFORM% ^
-DCMAKE_PREFIX_PATH=%ORBSLAM3_DEPENDENCIES_INSTALL_DIR%
%CMAKE_EXECUTABLE% --build . --config Release
@echo Building Release done.
cd..