Created
September 10, 2025 14:07
-
-
Save pvgenuchten/50e84a46d406273cd366db0de797113e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I had some challenges building https://github.com/swat-model/swatplus on ubuntu, | |
| apt-get provides an older version of cmake. | |
| So i started of with a docker image with a recent version of cmake, gfortran seems preinstalled. | |
| not sure why, but when running bash on the image, I had to install cmake first... | |
| local: | |
| docker run -it -v $(pwd):/work kitware/cmake:ci-debian12-x86_64-2025-03-31 bash | |
| bash in container: | |
| apt update | |
| apt install cmake | |
| git config --global --add safe.directory /work | |
| cmake --version # requires 3.20+ | |
| cmake -B build -D CMAKE_Fortran_COMPILER=gfortran | |
| cmake --build build | |
| ./build/swatplus-xxxx # to run it -> fails -> it needs some input files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment