mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -1,8 +1,8 @@
|
|||||||
# Building
|
|
||||||
|
|
||||||
## Building on Linux
|
|
||||||
|
|
||||||
### Building on linux prerequisites:
|
# Building on Linux
|
||||||
|
|
||||||
|
## Building on linux prerequisites:
|
||||||
|
|
||||||
It is assumed users know how to install packages on their system and
|
It is assumed users know how to install packages on their system and
|
||||||
be able to compile standard source packages. This is basic Linux and
|
be able to compile standard source packages. This is basic Linux and
|
||||||
@@ -42,7 +42,7 @@ https://lxadm.com/Static_compilation_of_cpuminer
|
|||||||
Static builds should only considered in a homogeneous HW and SW environment.
|
Static builds should only considered in a homogeneous HW and SW environment.
|
||||||
Local builds will always have the best performance and compatibility.
|
Local builds will always have the best performance and compatibility.
|
||||||
|
|
||||||
### Download cpuminer-opt
|
## Download cpuminer-opt
|
||||||
|
|
||||||
Download the source code for the latest release from the official repository.
|
Download the source code for the latest release from the official repository.
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ Alternatively it can be cloned from git.
|
|||||||
|
|
||||||
`$ git clone https://github.com/JayDDee/cpuminer-opt.git`
|
`$ git clone https://github.com/JayDDee/cpuminer-opt.git`
|
||||||
|
|
||||||
### Build cpuminer-opt
|
## Build cpuminer-opt
|
||||||
|
|
||||||
It is recomended to Build with default options, this will usuallly
|
It is recomended to Build with default options, this will usuallly
|
||||||
produce the best results.
|
produce the best results.
|
||||||
@@ -75,20 +75,20 @@ or
|
|||||||
|
|
||||||
N is the number of threads for the compiler to use.
|
N is the number of threads for the compiler to use.
|
||||||
|
|
||||||
### Start mining.
|
## Start mining.
|
||||||
|
|
||||||
|
|
||||||
`$ ./cpuminer -a algo -o url -u username -p password`
|
`$ ./cpuminer -a algo -o url -u username -p password`
|
||||||
|
|
||||||
|
|
||||||
## Building for Windows
|
# Building for Windows
|
||||||
|
|
||||||
Windows compilation using Visual Studio is not supported. Mingw64 is used on a Linux
|
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
|
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
|
for Windows. That procedure follows this simpler one. Minimal knowledge of the Unix file
|
||||||
system and bash shell are required.
|
system and bash shell are required.
|
||||||
|
|
||||||
### Building for Windows, the easy way
|
## Building for Windows, the easy way
|
||||||
|
|
||||||
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. 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
|
||||||
@@ -140,7 +140,7 @@ N is the number of compiler threads.
|
|||||||
6. Run cpuminer.exe directly from an MSYS2 terminal or, if step 3 was performed above,
|
6. 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.
|
it can run in a Windows terminal on the same system.
|
||||||
|
|
||||||
### Building for Windows, the hard way
|
## Building for Windows, the hard way
|
||||||
|
|
||||||
This procedure is used to build the Windows binary release package and is done from a Linux environment.
|
This procedure is used to build the Windows binary release package and is done from a Linux environment.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user