Updated Compiling from source (markdown)

JayDDee
2022-01-14 16:51:11 -05:00
parent 562f8bd102
commit 617c181c23

@@ -84,32 +84,34 @@ n is the number of threads.
## Building for Windows
Windows compilation using Visual Studio is not supported. Mingw64 is
used on a Linux system (bare metal or virtual machine) to cross-compile
cpuminer-opt executable binaries for Windows.
Windows compilation using Visual Studio is not supported. Mingw64 is used on a Linux
system (bare metal or virtual machine) to cross-compile cpuminer-opt binaries package
for Windows. That procedure follows this simpler one.
cpuminer-opt can now be built on Windows for windows using MinGW-w64 and MSYS2.
cpuminer-opt can now be built on Windows for Windows using MinGW-w64 and MSYS2.
Windows 7 or newer is required.
1. Download and install the latest version of msys2-x86_64 from https://www.msys2.org/
Download and install the latest version of msys2-x86_64 from https://www.msys2.org/
2. Install the following additional packages
Install the following additional packages
$ pacman -Su autoconf libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel
`$ pacman -Su autoconf libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel`
3. Set environmewnt variable to allow cpuminer-opt to be run from a Windows terminal, otherwise it can only run from an MSYS2 terminal.
Set environmewnt variable to allow cpuminer-opt to be run from a Windows terminal,
otherwise it can only run from an MSYS2 terminal.
https://stackoverflow.com/questions/6951938/libgmp-10-dll-is-missing
4. Open "MSYS2 MinGW-w64" from the Windows start menu.
Download and decompress cpuminer-opt source code to your MSYS2 home directory,
usually c:\msys2\home\[windows user]\ or a directory of your choice.
4. Download and decompress cpuminer-opt source code to your MSYS2 home directory, usually c:\msys2\home\[windows user]\ or a directory of your choice.
Open "MSYS2 MinGW-w64" from the Windows start menu and change directories to the downloaded
cpuminer-opt and compile.
5. Open "MSYS2 MinGW-w64" from the Windows start menu and change directories to the downloaded cpuminer-opt and compile.
`$ ./build.sh`
$ ./build.sh
6. Run cpuminer.exe directly from an MSYS2 terminal or, if step 3 was performed above, a Windows terminal on the same system.
Run cpuminer.exe directly from an MSYS2 terminal or, if step 3 was performed above,
it can run in a Windows terminal on the same system.
## Building for Windows, the hard way