Skip to content

Commit

Permalink
update build-g2o-x64
Browse files Browse the repository at this point in the history
  • Loading branch information
luc committed Nov 20, 2023
1 parent 264dd49 commit a557ea9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions externals/prebuild_scripts/build_g2o_x64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set PATH=%PATH%;C:\Program Files (x86)\Git\bin

:: build configuration
set MAX_NUM_CPU_CORES=6
set CMAKE_GENERATOR="Visual Studio 16 2019"
::set CMAKE_GENERATOR="Visual Studio 16 2019"
set CMAKE_ARCHITECTURE=x64
set EIGEN_VERSION=3.3.3
set VERSION=20170730_git
Expand Down Expand Up @@ -67,7 +67,8 @@ git checkout %VERSION%
mkdir %INSTALL_DIR%
mkdir BUILD-vs
cd BUILD-vs
cmake -G %CMAKE_GENERATOR% -A %CMAKE_ARCHITECTURE% -DEIGEN3_INCLUDE_DIR=..\eigen -DEigen3_DIR=..\eigen -DG2O_BUILD_APPS=%BUILD_APPS% -DG2O_BUILD_EXAMPLES=%BUILD_EXAMPLES% -DG2O_USE_CSPARSE=%USE_CSPARSE% -DG2O_USE_CHOLMOD=%USE_CHOLMOD% -DG2O_USE_OPENGL=%USE_OPENGL% -DQt5_DIR=%QT_DIR% -DQGLVIEWER_INCLUDE_DIR=%QGLVIEWER_DIR% -DQGLVIEWER_LIBRARY_DEBUG=%QGLVIEWER_DEBUG_LIB% -DQGLVIEWER_LIBRARY_RELEASE=%QGLVIEWER_RELEASE_LIB% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% ..
:: Removed -G %CMAKE_GENERATOR%
cmake -A %CMAKE_ARCHITECTURE% -DEIGEN3_INCLUDE_DIR=..\eigen -DEigen3_DIR=..\eigen -DG2O_BUILD_APPS=%BUILD_APPS% -DG2O_BUILD_EXAMPLES=%BUILD_EXAMPLES% -DG2O_USE_CSPARSE=%USE_CSPARSE% -DG2O_USE_CHOLMOD=%USE_CHOLMOD% -DG2O_USE_OPENGL=%USE_OPENGL% -DQt5_DIR=%QT_DIR% -DQGLVIEWER_INCLUDE_DIR=%QGLVIEWER_DIR% -DQGLVIEWER_LIBRARY_DEBUG=%QGLVIEWER_DEBUG_LIB% -DQGLVIEWER_LIBRARY_RELEASE=%QGLVIEWER_RELEASE_LIB% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% ..
msbuild INSTALL.vcxproj -maxcpucount:%MAX_NUM_CPU_CORES% /p:Configuration=Debug
msbuild INSTALL.vcxproj -maxcpucount:%MAX_NUM_CPU_CORES% /p:Configuration=Release
cd ..\..

0 comments on commit a557ea9

Please sign in to comment.