From f892370a615ecadc011b49a98d2c4695fafa7f4f Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Wed, 25 Sep 2019 09:29:33 -0700 Subject: [PATCH] Add Windows cross-compiling instructions to INSTALL.md. (#3226) --- INSTALL.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index fc32138f9..f61342da6 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -12,7 +12,7 @@ CVC4 prerelease version 1.8. make install # to install into the prefix specified above All binaries are built into `/bin`, the CVC4 library is built into -`/src`. +`/lib`. ## Supported Operating Systems @@ -23,6 +23,21 @@ On macOS, we recommend using Homebrew (https://brew.sh/) to install the dependencies. We also have a Homebrew Tap available at https://github.com/CVC4/homebrew-cvc4 . +### Cross-compiling for Windows + +Cross-compiling CVC4 with Mingw-w64 can be done as follows: + +``` + HOST=x86_64-w64-mingw32 ./contrib/get-win-dependencies + ./configure --win64 --static + + cd # default is ./build + make # use -jN for parallel build with N threads +``` + +The built binary `cvc4.exe` is located in `/bin` and the CVC4 library +can be found in `/lib`. + ## Build dependencies The following tools and libraries are required to build and run CVC4. -- 2.30.2