Skip to content

Instantly share code, notes, and snippets.

@zepinto
Last active May 21, 2020 15:53
Show Gist options
  • Save zepinto/46759f53c962485e98d6741cb4b67e9e to your computer and use it in GitHub Desktop.
Save zepinto/46759f53c962485e98d6741cb4b67e9e to your computer and use it in GitHub Desktop.
Bash script for compiling DUNE for windows under debian
#!/bin/bash
sudo apt-get update && apt-get install curl git mingw-w64 cmake make nsis
mkdir -p dune/build
git clone --depth=1 https://github.com/LSTS/dune.git dune/source
cd dune/build
curl https://gist.githubusercontent.com/zepinto/dbbe84fa4ca6e7f59954adabc5bc3dcc/raw/1eeb0cd156ed63498bda525d8de5bb0ff764654b/mingw-w64-x86_64.cmake > mingw-w64-toolchain.cmake
cmake -DCMAKE_TOOLCHAIN_FILE=mingw-w64-toolchain.cmake ../source && make package -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment