mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -94,10 +94,11 @@ cpuminer-opt can now be built on Windows for Windows using MinGW-w64 and MSYS2.
|
|||||||
Windows 7 or newer is required. The compiled executable can only run on the system where
|
Windows 7 or newer is required. The compiled executable can only run on the system where
|
||||||
it was built. Use the hard way for a portable package.
|
it was built. Use the hard way for a portable package.
|
||||||
|
|
||||||
1. Download and install the latest version of msys2-x86_64 from https://www.msys2.org/
|
1. Download and install the latest version of msys2-x86_64 from https://www.msys2.org/.
|
||||||
Leave the MSYS2 MSYS window open to install more packages in the next step.
|
Update packages and install mingw toolchain but leave the MSYS2 MSYS window open at the end to install
|
||||||
|
more packages in the next step.
|
||||||
|
|
||||||
2. Install the following additional packages
|
2. Install the following additional packages.
|
||||||
|
|
||||||
`$ pacman -S autotools libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel`
|
`$ pacman -S autotools libcurl-devel mingw-w64-x86_64-curl gmp-devel jansson-devel openssl-devel zlib-devel`
|
||||||
|
|
||||||
@@ -112,15 +113,11 @@ is a good choice. If intending to use cpuminer.exe from a Windows terminal (step
|
|||||||
folder is recommended. It can be accessed from an MSYS2 terminal using the path /c/users/[USER]/documents.
|
folder is recommended. It can be accessed from an MSYS2 terminal using the path /c/users/[USER]/documents.
|
||||||
|
|
||||||
5. Open "MSYS2 MinGW-w64" from the Windows start menu, change directories to the downloaded
|
5. Open "MSYS2 MinGW-w64" from the Windows start menu, change directories to the downloaded
|
||||||
cpuminer-opt and compile.
|
cpuminer-opt and compile. "--param=evrp-mode=legacy" is required to workaround a bug in the optimizer.
|
||||||
|
"-D_WIN32_WINNT=0x0601" is required to support Windows CPU groups.
|
||||||
|
|
||||||
`$ ./autogen.sh`
|
`$ ./autogen.sh`
|
||||||
|
|
||||||
`$ CFLAGS="-O3 --param=evrp-mode=legacy -march=native -Wall" ./configure --with-curl`
|
|
||||||
|
|
||||||
or add `-D_WIN32_WINNT=0x0601` to CFLAGS to enable CPU groups support in the miner.
|
|
||||||
This is required for a CPU with more than 64 threads or when CPU groups have been configured in Windows.
|
|
||||||
|
|
||||||
`$ CFLAGS="-O3 --param=evrp-mode=legacy -march=native -Wall -D_WIN32_WINNT=0x0601" ./configure --with-curl`
|
`$ CFLAGS="-O3 --param=evrp-mode=legacy -march=native -Wall -D_WIN32_WINNT=0x0601" ./configure --with-curl`
|
||||||
|
|
||||||
`$ make -j [N]`
|
`$ make -j [N]`
|
||||||
|
|||||||
Reference in New Issue
Block a user