Updated Compiling from source (markdown)

JayDDee
2024-12-26 17:32:53 -05:00
parent db22be3e0b
commit b460ee40f4

@@ -57,13 +57,13 @@ If Windows tools are preferred cpuminer-opt can be downloaded to the Windows Doc
# Apple MacOS build environment
Apple MacOS is supported on ARM64. Older MACs with x86_64 is untested and not officially supported yet. However, X86_64 is supported on all other OSs and and AM64 is now suported on MACOS so it may just work already.YMMV
Apple MacOS is supported on ARM64. Older MACs with x86_64 is untested and not officially supported yet. However, X86_64 is supported on all other OSs and and ARM64 is now suported on MACOS so it may just work already.YMMV
Setting up the build environment on MacOS does not require an ApplID or need anything from the App store.
#### Homebrew package manager
Download and install Homebrew from https://brew.sh/.
Install Homebrew from https://brew.sh/.
From a terminal use Hombrew to install packages:
@@ -82,9 +82,9 @@ For x86_64 replace "aarch64-elf-binutils" with "x86_64-elf-binutils".
At this point it's assumed the appropriate development environment has been setup for the target operating system and a command shell is open and ready to compile.
Download the source code for latest version of cpuminer-opt. "tar.gz" format files are preferred because zip does not preseve file attibutes.
There are many ways to download the source code but the simplest that works in all cases is to use wget from teh command shell:
Download only from the official JayDDee github repository: https://github.com/JayDDee/cpuminer-opt/
Download the source code for latest version of cpuminer-opt. "tar.gz" format files are preferred because zip does not preseve file attibutes.
There are many ways to download the source code but the simplest that works in all cases is to use wget from the command shell:
`$ wget https://github.com/JayDDee/cpuminer-opt/releases/tag/vX.Y`
@@ -101,7 +101,7 @@ Alternatively the latest version can be cloned from git.
#### Build cpuminer-opt
It is recomended to Build with default options, this will usuallly
produce the best results.
produce the best results. Enter the cpuminer-opt directory and run:
`$ ./build.sh`
@@ -113,9 +113,9 @@ or manually:
`$ make -j N`
N is the number of threads for the compiler to use.
N is the number of threads for the compiler to use. Use `-j $(nproc)` to use all CPU cores.
Some newer CPU architectures may not be defined for "-march=native" in older versions of gcc and may not recognize new features using the default build script. It is often possible to compile an optimum build by manually specifying options.
Some newer CPU architectures may not be defined for "-march=native" in older versions of the compiler and may not recognize new features using the default build script. It is often possible to compile an optimum build by manually specifying options.
Many examples for various desktop CPU architectures can be found for x86_64 in file build-allarch.sh, and for ARM64 in arbuild-all.sh.
@@ -125,8 +125,7 @@ Windows on ARM64 may crash with a segfault. Adding "-DARM_WIN_HACK" to CFLAGS an
`$ ./cpuminer -a algo -o url -u username -p password`
On Windows the file has the .exe extension.
On Windows the executable file has a .exe extension.
# Building for Windows, the hard way