mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -1,5 +1,7 @@
|
|||||||
Compiling cpuminer-opt from source code requires a different environment depending on the operating system used. Once the environment has been created the actual compile procedure is the same for all supported architectures and operating systems.
|
Compiling cpuminer-opt from source code requires a different environment depending on the operating system used. Once the environment has been created the actual compile procedure is the same for all supported architectures and operating systems.
|
||||||
|
|
||||||
|
A package is available for Windows on x86_64 with precompiled binaries which can be used instead of compiling from source for those who feel uncomfortable with compiling. There are no such binaries available for ARM64 or MacOS.
|
||||||
|
|
||||||
# Linux build environment
|
# Linux build environment
|
||||||
|
|
||||||
The following is based on Ubuntu and also applies to other Debian based Linux distributions. Fedora and other distributions have different package managers and may have slightly different package naming. Some packages may have separate runtime and development versions of the same package. Ensure the development or source code versions are installed.
|
The following is based on Ubuntu and also applies to other Debian based Linux distributions. Fedora and other distributions have different package managers and may have slightly different package naming. Some packages may have separate runtime and development versions of the same package. Ensure the development or source code versions are installed.
|
||||||
@@ -56,8 +58,8 @@ Notepad++ and 7zip are useful Windows programs with good support for Linux file
|
|||||||
#### Errata
|
#### Errata
|
||||||
* Windows on ARM64 is new and may have some isues.
|
* Windows on ARM64 is new and may have some isues.
|
||||||
* Windows on ARM64 uses Clang compiler produces many warnings that can be ignored.
|
* Windows on ARM64 uses Clang compiler produces many warnings that can be ignored.
|
||||||
* Windows on ARM64 may result in cpuminer-opt segfault when starting up. A workaround is documented in the compiling section below.
|
* Windows on ARM64 may result in cpuminer-opt segfault when starting up. Add `-DARM_WIN_HACK` to CFLAGS to workaround it.
|
||||||
* Windows with CPU groups enabled may produce affinity warnings at startup. The warnings can be ignored as affinity still seems to work correctly.
|
* Windows with CPU groups enabled may produce warning logs about CPU affinity at startup. The warnings can be ignored as affinity still seems to work correctly. CPU groups is disabled in the Windows x86_64 binaries package.
|
||||||
* Windows on ARM does not display CPU features correctly. The SW features are correct.
|
* Windows on ARM does not display CPU features correctly. The SW features are correct.
|
||||||
* CPU temperature and frequency reports are not supported on Windows.
|
* CPU temperature and frequency reports are not supported on Windows.
|
||||||
|
|
||||||
@@ -133,7 +135,7 @@ Some newer CPU architectures may not be defined for `-march=native` in older ver
|
|||||||
|
|
||||||
Many compile tips for x86_64 in file build-allarch.sh, and for ARM64 in arbuild-all.sh.
|
Many compile tips for x86_64 in file build-allarch.sh, and for ARM64 in arbuild-all.sh.
|
||||||
|
|
||||||
Windows on ARM64 may crash with a segfault. Adding `DARM_WIN_HACK` to CFLAGS and recompiling may workaround the crash.
|
Windows on ARM64 may crash with a segfault. Adding `-DARM_WIN_HACK` to CFLAGS and recompiling may workaround the crash.
|
||||||
|
|
||||||
#### Start mining.
|
#### Start mining.
|
||||||
|
|
||||||
@@ -143,8 +145,8 @@ On Windows the executable file has a .exe extension.
|
|||||||
|
|
||||||
# Building for Windows, the hard way
|
# Building for Windows, the hard way
|
||||||
|
|
||||||
This procedure is only used to build the Windows binary release package and is done from a Linux environment.
|
This procedure is only used to build the Windows binary release package for x86_64 and is done from a Linux environment.
|
||||||
It is not intended for users.
|
It is not intended for users.
|
||||||
|
|
||||||
These instructions were written specifically for Ubuntu-20.04.
|
These instructions were written specifically for Ubuntu-20.04.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user