Updated Compiling from source (markdown)

JayDDee
2022-08-17 00:46:42 -04:00
parent df5cb3925c
commit 3dd9ba549b

@@ -27,8 +27,7 @@ but different package names.
$ sudo apt-get install build-essential automake libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev zlib1g-dev git
`
SHA support on AMD Ryzen CPUs requires gcc version 5 or higher and
openssl 1.1.0e or higher. Add one of the following to CFLAGS for SHA
SHA support on AMD Ryzen CPUs requires gcc version 5 or higher. Add one of the following to CFLAGS for SHA
support depending on your CPU and compiler version:
"-march=native" is usually the best choice and is used by build.sh
@@ -87,7 +86,7 @@ Windows compilation using Visual Studio is not supported. Mingw64 is used on a L
system (bare metal or virtual machine) to cross-compile cpuminer-opt binaries package
for Windows. That procedure follows this simpler one. Minimal knowledge of the Unix file
system and bash shell are required. Some steps in common with building for Linux may not be
explained in the same detail here, refer to the Linux procedure for more details details.
explained in the same detail here, refer to the Linux procedure for more details.
## Building for Windows, the easy way
@@ -146,7 +145,13 @@ Wget will download specific release X.Y.Z.
#### Compile
"--param=evrp-mode=legacy" is required to workaround a bug in the compiler's optimizer.
"-D_WIN32_WINNT=0x0601" is required to support Windows CPU groups.
"-D_WIN32_WINNT=0x0601" is required to support Windows CPU groups. CPU groups requires Windows 7.
Running build-msys2.sh script will compile with the above options and should be used in most cases:
`$ ./build-msys2.sh`
Otherwise run the following commands adjusting the options as desired:
`$ ./autogen.sh`
@@ -154,7 +159,7 @@ Wget will download specific release X.Y.Z.
`$ make -j [N]`
N is the number of compiler threads.
[N] is the number of CPU threads used by the compiler.
#### Run cpuminer.exe
@@ -256,8 +261,7 @@ This script is used to build the Windows release package. Although it was not wr
for users it can help simplify compiling. If necessary edit winbuild-cross.sh to correct
any directory paths to match your environment.
If you insist on using this procedure to build a single executable
This step is required everytime you login or the commands can be added to
If you insist on using this procedure to build a single executable this step is required everytime you login or the commands can be added to
.bashrc.
Define some local variables to point to the local library.
@@ -298,7 +302,7 @@ The following steps need to be done every time a new source package is
opened.
Download the latest source code package of cpumuner-opt to your desired
location. .zip or .tar.gz, your choice.
location. Downloading the tar.gz file is preferred as it preserves file permissions, specifically execute permission.
https://github.com/JayDDee/cpuminer-opt/releases
@@ -330,8 +334,6 @@ if you know what features you want:
This will compile for an older CPU that does not have AVX.
You can find several examples in README.txt
If you have a CPU with more than 64 threads and Windows 7 or higher you
can enable the CPU Groups feature by adding the following to CFLAGS:
@@ -341,7 +343,7 @@ Once you have run configure successfully run the compiler with n CPU threads:
`$ make -j n`
Copy cpuminer.exe to the release directory, compress and copy the release
Copy cpuminer.exe to the previously created release directory, compress and copy the release
directory to a Windows system and run cpuminer.exe from the command line.
Run cpuminer