hello everyone, I follow this page to build https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows
I took those steps:
0PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
1sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" # Disable WSL support for Win32 applications.
2cd depends
3make HOST=x86_64-w64-mingw32
4cd ..
5./autogen.sh
6CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
7make # use "-j N" for N parallel jobs
8sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status" # Enable WSL support for Win32 applications.
everything right except “make -j 12” After compiling for a long time
generate some exe files:
my os info: windows 11 21H2 wsl2 : Linux DESKTOP-46OIGI3 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux gcc: x86_64-w64-mingw32-g++ (GCC) 9.3-win32 20200320