痛苦的过程,编译glomap
因为3dgs项目的需要,重新编译glomap代码,恢复其原始尺寸
根目录CMakeLists.txt 中, cmake_minimum_required(VERSION 3.28) 后添加 include(E:/work/vcpkg/scripts/buildsystems/vcpkg.cmake)
新建build目录,在其目录下执行 cmake .. -G "Visual Studio 17 2022" ,(官方使用的ninja,实在没有安装成功)
可能git clone 错误,添加git代理 git config --global http.proxy 10.66.8.234:7890
先报几个库找不到,干脆加 “库名_DIR” 到 对应CMakeFile中,后生成sln ,
类似GMP找不到, set(GMP_INCLUDE_DIR "E:\work\vcpkg\packages\gmp_x64-windows\include")
-------------
set(CGAL_DIR "E:\work\vcpkg\installed\x64-windows\share\cgal\")
set(Qt5_DIR "E:\work\vcpkg\packages\qt5-base_x64-windows\share\cmake\Qt5")
set(GMP_INCLUDE_DIR "E:\work\vcpkg\packages\gmp_x64-windows\include")
set(GMP_LIBRARIES "E:\work\vcpkg\packages\gmp_x64-windows\lib")
set(MPFR_INCLUDE_DIR "E:\work\vcpkg\packages\gmp_x64-windows\include")
set(MPFR_LIBRARIES "E:\work\vcpkg\packages\gmp_x64-windows\lib")
-------------------
cmake .. -G"Visual Studio 17 2022" -DCGAL_DIR=E:\dataset\3DGAUSSE\code\colmap\vcpkg\installed\x64-windows\share\cgal -DGLEW_INCLUDE_DIRS=E:\dataset\3DGAUSSE\code\colmap\vcpkg\packages\glew_x64-windows\include -DGLEW_LIBRARIES=E:\dataset\3DGAUSSE\code\colmap\vcpkg\packages\glew_x64-windows\lib