Updated Compiling from source (markdown)

JayDDee
2023-05-24 21:36:26 -04:00
parent f4f126a57e
commit 99092dde61

@@ -96,8 +96,7 @@ explained in the same detail here, refer to the Linux procedure for more details
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
it was built. If portability is required compile the hard way or use the precompiled
binaries package.
it was built.
#### Install MSYS2
@@ -180,7 +179,8 @@ cpuminer.exe --help will give a list of options.
## 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 only used to build the Windows binary release package and is done from a Linux environment.
It is not intended for users.
These instructions were written for Debian and Ubuntu compatible distributions
but should work on other major distributions as well. However some of the
@@ -215,20 +215,19 @@ The Suggested location is $HOME/usr/lib/
#### Build libraries
The following procedure assumes Ubuntu-20.04 as the host and is the only configuration guaranteed to work.
Download and build other packages for mingw that don't have a mingw64 version available in the repositories.
Download the following source code packages from their respective and respected download locations,
copy them to $HOME/usr/lib/ and uncompress them.
openssl: https://github.com/openssl/openssl/releases
openssl v1.1.1f: https://github.com/openssl/openssl/releases
curl: https://github.com/curl/curl/releases
curl v7.68.0: https://github.com/curl/curl/releases
gmp: https://gmplib.org/download/gmp/
gmp v6.2.0: https://gmplib.org/download/gmp/
In most cases the latest version is ok but it's safest to download the same major and minor version
as included in your distribution. The following uses versions from Ubuntu 20.04. Change version numbers
as required.
Download the same versions as currently installed on the host. The versions listed above are for Ubuntu 20.04.
Run the following commands or follow the supplied instructions.
Do not run "make install" unless you are using /usr/lib, which isn't recommended.