Updated Compiling from source (markdown)

JayDDee
2022-01-20 23:22:18 -05:00
parent c3cdce5928
commit b91b77fc65

@@ -121,15 +121,15 @@ https://stackoverflow.com/questions/6951938/libgmp-10-dll-is-missing
#### Download cpuminer-opt #### Download cpuminer-opt
Download and decompress cpuminer-opt source code. Download the tar.gz file as it preserves file permissions, Download and decompress cpuminer-opt source code. Download the tar.gz file as it preserves file permissions,
specifically executability. It can be dowloaded from the Windows browser or from MSYS2 MinGW-w64 terminal. specifically executability. It can be dowloaded from the Windows web browser or from MSYS2 MinGW-w64 terminal.
This is different from the terminal used for package installation. This is different from the MSYS2 MSYS terminal used for package installation.
If Windows tools are preferred cpuminer-opt can be downloaded to the Windows Documents folder and accessed from If Windows tools are preferred cpuminer-opt can be downloaded to the Windows Documents folder and accessed from
MSYS2 terminal using the path /c/users/[USER]/documents. Notepad++ and 7zip are useful Windows programs with good support for MSYS2 terminal using the path /c/users/[USER]/documents. Notepad++ and 7zip are useful Windows programs with good support for
Linux file formats. The MSYS2 home directory can be accessed from Windows with C:\msys2\home\[USER]. Linux file formats. The MSYS2 home directory can be accessed from Windows with C:\msys2\home\[USER].
Cpuminer-opt can be downloaded from the MSYS2 terminal using git or wget. Git will download the most recent source code, Cpuminer-opt can be downloaded from the MSYS2 terminal using git or wget. Git will download the most recent source code,
usually it matches the latest release. it matches the latest release.
`$ git clone https://github.com/JayDDee/cpuminer-opt.git` `$ git clone https://github.com/JayDDee/cpuminer-opt.git`
@@ -156,15 +156,18 @@ Wget will download specific release X.Y.Z.
N is the number of compiler threads. N is the number of compiler threads.
#### Run cpuminer.exe
Run cpuminer.exe directly in an MSYS2 terminal. Run cpuminer.exe directly in an MSYS2 terminal.
`$ ./cpuminer.exe -a algo -o url -u username -p password` `$ ./cpuminer.exe -a algo -o url -u username -p password`
Or, if step 3 was performed above, it can run in a Windows terminal on the same system. It can also be copied Or, if the Path variable was set above, it can run in a Windows terminal on the same system. It can also be copied
or moved to a more convenient location. or moved to a more convenient location.
`> cpuminer.exe -a algo -o url -u username -p password` `> cpuminer.exe -a algo -o url -u username -p password`
cpuminer.exe --help will give a list of options.
## Building for Windows, the hard way ## Building for Windows, the hard way