Skip to content

Commit

Permalink
Update windows docker boost and cmake (#6033)
Browse files Browse the repository at this point in the history
* Only install boost-filesystem and boost-iostreams and their dependencies instead of all of boost.

* Remove unncessary continouation line.

* Added more required boost modules.

* Boost-format used in example_iccp_segmentation.
  • Loading branch information
larshg committed May 8, 2024
1 parent da1cce4 commit 00331db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .dev/docker/windows/Dockerfile
Expand Up @@ -30,23 +30,23 @@ RUN wget $Env:CHANNEL_BASE_URL/vs_buildtools.exe -OutFile 'C:\TEMP\vs_buildtools
"C:\TEMP\VisualStudio.chman", `
"--add", `
"Microsoft.VisualStudio.Workload.VCTools", `
"Microsoft.Net.Component.4.8.SDK", `
"Microsoft.Net.Component.4.8.SDK", `
"Microsoft.VisualStudio.Component.VC.ATLMFC", `
"--includeRecommended" `
-Wait -PassThru; `
del c:\temp\vs_buildtools.exe;

# VCPKG requires update if Cmake version is > 3.20.5 see: https://github.com/microsoft/vcpkg-tool/pull/107
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); `
choco install cmake --version=3.20.5 --installargs 'ADD_CMAKE_TO_PATH=System' -y --no-progress; `
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y --no-progress; `
choco install git -y --no-progress

RUN git clone https://github.com/microsoft/vcpkg.git; cd vcpkg; git checkout $Env:VCPKGCOMMIT;

# To explicit set VCPKG to only build Release version of the libraries.
COPY $PLATFORM'-windows-rel.cmake' 'c:\vcpkg\triplets\'$PLATFORM'-windows-rel.cmake'
RUN cd .\vcpkg; `
.\bootstrap-vcpkg.bat; `
.\vcpkg install boost flann eigen3 qhull vtk[qt,opengl] gtest benchmark openni2 --triplet $Env:PLATFORM-windows-rel --host-triplet $Env:PLATFORM-windows-rel --clean-after-build --x-buildtrees-root=C:\b; `
RUN cd .\vcpkg; `
.\bootstrap-vcpkg.bat; `
.\vcpkg install boost-accumulators boost-asio boost-algorithm boost-filesystem boost-format boost-graph boost-interprocess boost-iostreams boost-math boost-ptr-container boost-signals2 boost-sort boost-uuid flann eigen3 qhull vtk[qt,opengl] gtest benchmark openni2 `
--triplet $Env:PLATFORM-windows-rel --host-triplet $Env:PLATFORM-windows-rel --clean-after-build --x-buildtrees-root=C:\b;

0 comments on commit 00331db

Please sign in to comment.