@@ -81,27 +81,6 @@ The first step is to install the mingw-w64 cross-compilation tool chain:
81
81
82
82
sudo apt install g++-mingw-w64-x86-64
83
83
84
- Next, set the default ` mingw32 g++ ` compiler option to POSIX<sup >[ 1] ( #footnote1 ) </sup >:
85
-
86
- ```
87
- sudo update-alternatives --config x86_64-w64-mingw32-g++
88
- ```
89
-
90
- After running the above command, you should see output similar to that below.
91
- Choose the option that ends with ` posix ` .
92
-
93
- ```
94
- There are 2 choices for the alternative x86_64-w64-mingw32-g++ (providing /usr/bin/x86_64-w64-mingw32-g++).
95
-
96
- Selection Path Priority Status
97
- ------------------------------------------------------------
98
- 0 /usr/bin/x86_64-w64-mingw32-g++-win32 60 auto mode
99
- * 1 /usr/bin/x86_64-w64-mingw32-g++-posix 30 manual mode
100
- 2 /usr/bin/x86_64-w64-mingw32-g++-win32 60 manual mode
101
-
102
- Press <enter> to keep the current choice[*], or type selection number:
103
- ```
104
-
105
84
Once the toolchain is installed the build steps are common:
106
85
107
86
Note that for WSL the Bitcoin Core source path MUST be somewhere in the default mount file system, for
@@ -142,13 +121,3 @@ way. This will install to `c:\workspace\bitcoin`, for example:
142
121
You can also create an installer using:
143
122
144
123
make deploy
145
-
146
- Footnotes
147
- ---------
148
-
149
- <a name =" footnote1 " >1</a >: Starting from Ubuntu Xenial 16.04, both the 32 and 64 bit Mingw-w64 packages install two different
150
- compiler options to allow a choice between either posix or win32 threads. The default option is win32 threads which is the more
151
- efficient since it will result in binary code that links directly with the Windows kernel32.lib. Unfortunately, the headers
152
- required to support win32 threads conflict with some of the classes in the C++11 standard library, in particular std::mutex.
153
- It's not possible to build the Bitcoin Core code using the win32 version of the Mingw-w64 cross compilers (at least not without
154
- modifying headers in the Bitcoin Core source code).
0 commit comments