Updated Compiling from source (markdown)

JayDDee
2025-01-03 21:47:34 -05:00
parent 19d0175b43
commit 3c99d18827

@@ -36,19 +36,22 @@ Download and install the latest version of msys2-x86_64 from https://www.msys2.o
Update packages and install the mingw toolchain but leave the MSYS2 MSYS window open at the end to install more packages in the next step. Update packages and install the mingw toolchain but leave the MSYS2 MSYS window open at the end to install more packages in the next step.
Install the following additional packages required for compiling cpuminer-opt Install additional packages required for compiling cpuminer-opt.
`$ pacman -S autotools libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel` On x86_64:
`$ pacman -S autotools libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel zlib-devel`
On ARM64:
`$ pacman -S mingw-w64-clang-aarch64-clang mingw-w64-clang-aarch64-autotools mingw-w64-clang-aarch64-curl mingw-w64-clang-aarch64-gmp mingw-w64-clang-aarch64-jansson mingw-w64-clang-aarch64-zlib`
Other desired packages can also be installed at this time. Some useful ones not installed by default include Other desired packages can also be installed at this time. Some useful ones not installed by default include
git, openssh, wget, vim ... git, openssh, wget, vim ...
There will be 3 MSys2 shortcuts installed in the Windows start menu, they have different purposes: Open the apropriate MSys2 terminal for your architecture from the start menu. On X86_64 open MINGW64 to compile with GCC, on ARM64 open CLANGARM64 to compile with Clang.
* MSYS2 MSYS: administration, package instalation
* MSYS2 MINGW64: compiling with GCC
* MSYS2 CLANG: compiling with Clang
Ensure the correct one is used. GCC is recommended but is only avalable for x86_64 at this time. ARM64 only supports Clang which has problems described in errata below. Ensure the correct one is used. GCC is recommended but is only avalable for x86_64 at this time. On ARM64 the only choice is Clang which has problems described in errata below.
cpuminer-opt can now be compiled on Windows, see Compiling section below. cpuminer-opt can now be compiled on Windows, see Compiling section below.