Skip to content

Commit 770f538

Browse files
author
Mitsutoshi Aoe
committed
Update installation instructions for Windows
1 parent 05a8c3f commit 770f538

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,24 @@ stack install --flag gtk:have-quartz-gtk
6969

7070
### Windows
7171

72-
stack is the recommended tool to build threadscope on Windows.
72+
[Chocolatey](https://chocolatey.org/) can be used to install GHC and [MSYS2](https://www.msys2.org/) is the recommended way to install GTK+.
7373

74-
CAVEAT: Currently gtk2 needs to be installed twice: one for stack's MSYS2 environment and another for local MSYS2 environment.
74+
```sh
75+
choco install ghc
76+
refreshenv
77+
set PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;%PATH%
78+
pacman -Sy mingw-w64-x86_64-gtk2
79+
```
80+
81+
then you can build threadscope using cabal:
82+
83+
```sh
84+
cabal new-build
85+
```
86+
87+
Or you can use stack instead.
88+
89+
CAVEAT: gtk2 needs to be installed twice: one for stack's MSYS2 environment and another for local MSYS2 environment.
7590

7691
In command prompt:
7792
```sh
@@ -90,3 +105,5 @@ echo 'export PATH=$APPDATA/local/bin:$PATH' >> .profile
90105
source .profile
91106
threadscope
92107
```
108+
109+
Building using stack is not tested in CI. If you find any issues with building with stack, please update the instructions and send a PR.

0 commit comments

Comments
 (0)