Updated Compiling from source (markdown)

JayDDee
2025-01-06 00:06:53 -05:00
parent 4d0b1a0e03
commit 46c3b49f21

@@ -51,17 +51,18 @@ Open the apropriate MSys2 terminal for your architecture from the start menu. On
Ensure the correct one is used. GCC is recommended but is only avalable for x86_64 at this time. On ARM64 the only choice is Clang which has problems described in errata below. Ensure the correct one is used. GCC is recommended but is only avalable for x86_64 at this time. On ARM64 the only choice is Clang which has problems described in errata below.
cpuminer-opt can now be compiled on Windows, see Compiling section below.
#### Windows integration, optional
It's possible to run cpuminer-opt from a Windows command prompt or Powershell using DOS syntax by adding MSYS2 to the system Path environment variable, otherwise it can only run from an MSYS2 terminal. FYI: https://stackoverflow.com/questions/6951938/libgmp-10-dll-is-missing
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`. 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`.
The MSYS2 home directory can be accessed from Windows with `C:\msys2\home\[USER]`. The MSYS2 home directory can be accessed from Windows with `C:\msys2\home\[USER]`.
Notepad++ and 7zip are useful Windows programs with good support for Linux file formats. Notepad++ and 7zip are useful Windows programs with good support for Linux file formats.
#### Windows integration, optional
cpuminer-opt must normally br run from the MSys command terminal. It is possible to run from a Windows command prompt or Powershell using DOS syntax by adding MSYS2 to the system Path environment variable. FYI: https://stackoverflow.com/questions/6951938/libgmp-10-dll-is-missing
cpuminer-opt can now be compiled on Windows, see Compiling cpuminer-opt below.
#### Errata #### Errata
* CPU temperature and frequency reports are not supported on Windows. * CPU temperature and frequency reports are not supported on Windows.
* Windows on ARM64 can only be compiled with Clang at this time resulting in an unstable build that may crash. * Windows on ARM64 can only be compiled with Clang at this time resulting in an unstable build that may crash.
* Windows on ARM64 may result in cpuminer-opt segfault when starting up. Add `-DARM_WIN_HACK` to CFLAGS to workaround it. This workaround may or may not work and may or may not be necessary. * Windows on ARM64 may result in cpuminer-opt segfault when starting up. Add `-DARM_WIN_HACK` to CFLAGS to workaround it. This workaround may or may not work and may or may not be necessary.