From 9aa6177591d2a12e3734aae64e6e5b915b2877c7 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Tue, 31 Dec 2019 01:39:23 -0800 Subject: [PATCH] INSTALL: MinGW instruction (#15405) --- INSTALL | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index cc165580f..ef89be015 100644 --- a/INSTALL +++ b/INSTALL @@ -44,7 +44,32 @@ Install it (may require sudo): Installation on Windows ----------------------- -To be written. +Only MinGW is supported for now. + +First, install MSYS2. + +Then, from "MYS2 MinGW64 32-bit" shell, install the required packages: + + pacman -S msys/make + pacman -S mingw32/mingw-w64-i686-toolchain + pacman -S mingw32/mingw-w64-i686-cmake + pacman -S mingw32/mingw-w64-i686-qtwebkit + pacman -S mingw32/mingw-w64-i686-python2 + +Note: add --disable-download-timeout as an additional argument, if the +installation failed due to the slow server responses. + +After unpacking the source tarball or cloning the repository: + + cmake . -G "MinGW Makefiles" + +And then start the build process: + + make + +Do a quick sanity check: + + ./bin/phantomjs.exe --version Installation on macOS