8
8
9
9
Currently [ pre-built binaries] ( https://github.com/haskell/ThreadScope/releases ) for the following platforms are provided:
10
10
11
- * Ubuntu 18 .04 (64-bit)
12
- * macOS 10.15
13
- * Windows Server 2019 (x64)
11
+ * Ubuntu 24 .04 (64-bit)
12
+ * macOS 14.7
13
+ * Windows Server 2022 (x64)
14
14
15
- GTK+2 needs to be installed for these binaries to work.
15
+ GTK+3 needs to be installed for these binaries to work.
16
16
17
- On Windows, the [ MSYS2] ( http://www.msys2.org ) is the recommended way to install GTK+2 . In MSYS2 MINGW64 shell:
17
+ On Windows, the [ MSYS2] ( http://www.msys2.org ) is the recommended way to install GTK+3 . In MSYS2 MINGW64 shell:
18
18
19
19
``` sh
20
- pacman -S $MINGW_PACKAGE_PREFIX -gtk2
20
+ pacman -S $MINGW_PACKAGE_PREFIX -gtk3
21
21
```
22
22
23
23
then you can run the threadscope binary from the shell.
@@ -26,12 +26,14 @@ then you can run the threadscope binary from the shell.
26
26
27
27
Use ` git clone ` or ` cabal get threadscope ` to get the source and move into the threadscope directory.
28
28
29
+ The code for the Github Actions is a good guide for building from source.
30
+
29
31
### Linux
30
32
31
- GTK+2 is required to be installed. On Ubuntu-like systems:
33
+ GTK+3 is required to be installed. On Ubuntu-like systems:
32
34
33
35
``` sh
34
- sudo apt install libgtk2.0 -dev
36
+ sudo apt install libgtk-3 -dev
35
37
```
36
38
37
39
Then you can build threadscope using cabal:
@@ -53,7 +55,7 @@ stack install # to build and install the binary
53
55
GTK+ is required:
54
56
55
57
``` sh
56
- brew install gtk+
58
+ brew install cairo gtk+3 pkg-config
57
59
```
58
60
59
61
Then you can build threadscope using cabal:
@@ -72,13 +74,16 @@ stack --stack-yaml=stack.osx.yaml install # to install the binary
72
74
73
75
### Windows
74
76
77
+ > [ !CAUTION]
78
+ > The Windows instructions may be out of date. Contributions to update them would be welcome.
79
+
75
80
[ Chocolatey] ( https://chocolatey.org/ ) can be used to install GHC and [ MSYS2] ( https://www.msys2.org/ ) is the recommended way to install GTK+.
76
81
77
82
``` sh
78
83
choco install ghc
79
84
refreshenv
80
85
set PATH=C:\\ msys64\\ mingw64\\ bin; C:\\ msys64\\ usr\\ bin; %PATH%
81
- pacman -Sy mingw-w64-x86_64-gtk2
86
+ pacman -Sy mingw-w64-x86_64-gtk3
82
87
```
83
88
84
89
then you can build threadscope using cabal:
@@ -89,7 +94,7 @@ cabal v2-build
89
94
90
95
Or you can use stack instead.
91
96
92
- CAVEAT: gtk2 needs to be installed twice: one for stack's MSYS2 environment and another for local MSYS2 environment.
97
+ CAVEAT: gtk3 needs to be installed twice: one for stack's MSYS2 environment and another for local MSYS2 environment.
93
98
94
99
In command prompt:
95
100
@@ -98,14 +103,14 @@ stack setup
98
103
stack exec -- pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime msys2-runtime-devel
99
104
stack exec -- pacman -Syu
100
105
stack exec -- pacman -Syuu
101
- stack exec -- pacman -S base-devel mingw-w64-x86_64-pkg-config mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk2
106
+ stack exec -- pacman -S base-devel mingw-w64-x86_64-pkg-config mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3
102
107
stack install
103
108
```
104
109
105
110
Then in MSYS2 MINGW64 shell:
106
111
107
112
``` sh
108
- pacman -S $MINGW_PACKAGE_PREFIX -gtk2
113
+ pacman -S $MINGW_PACKAGE_PREFIX -gtk3
109
114
echo ' export PATH=$APPDATA/local/bin:$PATH' >> .profile
110
115
source .profile
111
116
threadscope
0 commit comments