CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 00:08:48 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"9b5f1fa41bcf3b8af5518ec8e1550b30"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=trCGCHqC22lFo0ehOsz6AV6O4vFe5yOuDFR5Sz1MvfVpHaJ4byPGurbIoSTgvGWv5wyz1yBmFXb81PuJEwad8hjR0HN9q8EUbwnRh8X6iDY9AMC6XTUet7m%2Bo26Te0bHme1pqP6MnVxuvWb880Tp2v3dE5No%2B3nFhbS0S%2FMaIjhL%2BHLEdpKUBm7xifAcPBxCB24ZlT5sxHa7jvRv3gPka4HyEH%2FII%2BDUvBcJQUv9vvPc2f%2FXgGqVQEvSV91svEd7sLCc%2FtwB97dD8q3WYKI%2FtA%3D%3D--8xwC8%2BXfLsqT5Dzn--TkpgVLT0kykT0rH56vA32A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.961038913.1753920527; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 00:08:47 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 00:08:47 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9EDA:226082:DEAF5:15186D:688AB40F
Windows Powershell Script · sandialabs/seacas Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 85
Windows Powershell Script
Greg Sjaardema edited this page May 14, 2025
·
2 revisions
I need a way to build SEACAS + dependencies on Windows relying on Powershell alone without Bash. I might be mistaken, but it looks like the Windows support currently relies on mingw/msys/etc, so I put together the script below to download, build and install the various dependencies. I don't have the bandwidth to port/maintain the full complexity of install_tpl.sh and support all options, but wanted to share what I have working in case it's useful. This builds everything statically and patches upstream/mainline CGNS and NetCDF to workaround https://github.com/HDFGroup/hdf5/issues/5525.
# Specify installation path
$Env:SEACAS_INSTALL_PATH="C:/seacas_install"
#
#
# libaec
#
curl https://gitlab.dkrz.de/k202009/libaec/-/archive/v1.1.3/libaec-v1.1.3.zip -o libaec.zip
Expand-Archive .\libaec.zip
cd libaec
cd libaec-v1.1.3
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DBUILD_TESTING=OFF ..
cmake --build . --target install --config Release
cd ../../..
#
# zlib
#
curl https://github.com/madler/zlib/archive/refs/tags/v1.3.1.zip -o zlib.zip
Expand-Archive zlib.zip
cd zlib
cd zlib-1.3.1
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DZLIB_BUILD_EXAMPLES=OFF ..
cmake --build . --target install --config Release
cd ../../..
#
# HDF5
#
curl https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.6.zip -o hdf5.zip
Expand-Archive .\hdf5.zip
cd hdf5
cd hdf5-hdf5_1.14.6
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DBUILD_TESTING=OFF -DHDF5_BUILD_EXAMPLES=OFF -DHDF5_BUILD_UTILS=OFF -DHDF5_BUILD_TOOLS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DSZIP_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/szip-static.lib -DSZIP_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -DZLIB_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/zlibstatic.lib -DZLIB_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -DHDF5_USE_LIBAEC_STATIC=ON -Dlibaec_DIR="$Env:SEACAS_INSTALL_PATH"/cmake -Dlibaec_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -Dlibaec_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/aec-static.lib ..
cmake --build . --parallel --target install --config Release
cd ../../..
#
# CGNS
#
# release is broken with newer zlib
#curl https://github.com/CGNS/CGNS/archive/refs/tags/v4.5.0.zip -o cgns.zip
#Expand-Archive .\cgns.zip
#cd cgns
#cd CGNS-4.5.0
# requires https://github.com/CGNS/CGNS/pull/834
git clone --depth=1 https://github.com/andrewcorrigan/CGNS
cd CGNS
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DCGNS_BUILD_SHARED=OFF -DHDF5_DIR="$Env:SEACAS_INSTALL_PATH"/cmake -DHDF5_NEED_SZIP=ON -DHDF5_NEED_ZLIB=ON -DZLIB_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/zlibstatic.lib -DSZIP_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/szip-static.lib -Dlibaec_DIR="$Env:SEACAS_INSTALL_PATH"/cmake -Dlibaec_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -Dlibaec_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/aec-static.lib ..
cmake --build . --parallel --target install --config Release
cd ../..
#
# Netcdf
#
curl https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.9.3.zip -o netcdf.zip
Expand-Archive .\netcdf.zip
cd netcdf
cd netcdf-c-4.9.3
# BEGIN PATCH
# upstream is broken: https://github.com/Unidata/netcdf-c/issues/3129
cd cmake
rm .\modules\FindZLIB.cmake
rm .\dependencies.cmake
curl https://raw.githubusercontent.com/andrewcorrigan/netcdf-c/refs/heads/main/cmake/dependencies.cmake -o dependencies.cmake
cd ..
# END PATCH
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_TESTSETS=OFF -DNETCDF_ENABLE_TESTS=OFF -DNETCDF_ENABLE_UNIT_TESTS=OFF -DNETCDF_ENABLE_FILTER_TESTING=OFF -DNETCDF_ENABLE_FILTER_ZSTD=OFF -DNETCDF_ENABLE_FILTER_BZ2=OFF -DNETCDF_ENABLE_DAP=OFF -DNETCDF_ENABLE_BYTERANGE=OFF -DNETCDF_ENABLE_NCZARR=OFF -DNETCDF_ENABLE_BLOSC=OFF -DNETCDF_ENABLE_FILTER_BLOSC=OFF -DNETCDF_ENABLE_LIBXML2=OFF -DNETCDF_ENABLE_NCZARR_FILTERS=OFF -DNETCDF_ENABLE_V2_API=OFF -DNETCDF_ENABLE_LIB=OFF -DNETCDF_ENABLE_BASH_SCRIPT_TESTING=OFF -DNETCDF_BUILD_UTILITIES=OFF -DHDF5_DIR="$Env:SEACAS_INSTALL_PATH"/cmake -DHDF5_C_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -DHDF5_hdf5_LIBRARY_RELEASE="$Env:SEACAS_INSTALL_PATH"/lib/libhdf5.lib -DHDF5_hdf5_hl_LIBRARY_RELEASE="$Env:SEACAS_INSTALL_PATH"/lib/libhdf5_hl.lib -DZLIB_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/zlibstatic.lib -DZLIB_INCLUDE_DIR="$Env:SEACAS_INSTALL_PATH"/include -DSzip_DEBUG_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/szip-static.lib -DSzip_RELEASE_LIBRARY="$Env:SEACAS_INSTALL_PATH"/lib/szip-static.lib -DSzip_INCLUDE_DIRS="$Env:SEACAS_INSTALL_PATH"/include ..
cmake --build . --parallel --target install --config Release
cd ../../..
#
# Seacas
#
git clone --depth=1 https://github.com/sandialabs/seacas
cd seacas
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$Env:SEACAS_INSTALL_PATH" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DSeacas_ENABLE_SEACASExodus=ON -DSEACASExodus_ENABLE_HDF5=ON -DHDF5_DIR="$Env:SEACAS_INSTALL_PATH"/cmake -DTPL_HDF5_LIBRARIES="$Env:SEACAS_INSTALL_PATH"/lib/libhdf5.lib -DTPL_HDF5_INCLUDE_DIRS="$Env:SEACAS_INSTALL_PATH"/include -DTPL_Netcdf_INCLUDE_DIRS="$Env:SEACAS_INSTALL_PATH"/include -DTPL_Netcdf_LIBRARIES="$Env:SEACAS_INSTALL_PATH"/lib/netcdf.lib ..
cmake --build . --parallel --target install --config Release
cd ../..
Clone this wiki locally
You can’t perform that action at this time.