mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -172,11 +172,11 @@ This step is required everytime you login or the commands can be added to
|
|||||||
Define some local variables to point to local library.
|
Define some local variables to point to local library.
|
||||||
|
|
||||||
|
|
||||||
`$ export LOCAL_LIB="$HOME/usr/lib"`
|
`export LOCAL_LIB="$HOME/usr/lib"`
|
||||||
|
|
||||||
`$ export LDFLAGS="-L$LOCAL_LIB/curl/lib/.libs -L$LOCAL_LIB/gmp/.libs -L$LOCAL_LIB/openssl"`
|
`export LDFLAGS="-L$LOCAL_LIB/curl/lib/.libs -L$LOCAL_LIB/gmp/.libs -L$LOCAL_LIB/openssl"`
|
||||||
|
|
||||||
`$ export CONFIGURE_ARGS="--with-curl=$LOCAL_LIB/curl --with-crypto=$LOCAL_LIB/openssl --host=x86_64-w64-mingw32"`
|
`export CONFIGURE_ARGS="--with-curl=$LOCAL_LIB/curl --with-crypto=$LOCAL_LIB/openssl --host=x86_64-w64-mingw32"`
|
||||||
|
|
||||||
|
|
||||||
Create a release directory and copy some dll files previously built.
|
Create a release directory and copy some dll files previously built.
|
||||||
@@ -184,19 +184,19 @@ This can be done outside of cpuminer-opt and only needs to be done once.
|
|||||||
If the release directory is in cpuminer-opt directory it needs to be
|
If the release directory is in cpuminer-opt directory it needs to be
|
||||||
recreated every a source package is decompressed.
|
recreated every a source package is decompressed.
|
||||||
|
|
||||||
`$ mkdir release`
|
`mkdir release`
|
||||||
|
|
||||||
`$ cp /usr/x86_64-w64-mingw32/lib/zlib1.dll release/`
|
`cp /usr/x86_64-w64-mingw32/lib/zlib1.dll release/`
|
||||||
|
|
||||||
`$ cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll release/`
|
`cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll release/`
|
||||||
|
|
||||||
`$ cp /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libstdc++-6.dll release/`
|
`cp /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libstdc++-6.dll release/`
|
||||||
|
|
||||||
`$ cp /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libgcc_s_seh-1.dll release/`
|
`cp /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libgcc_s_seh-1.dll release/`
|
||||||
|
|
||||||
`$ cp $LOCAL_LIB/openssl/libcrypto-1_1-x64.dll release/`
|
`cp $LOCAL_LIB/openssl/libcrypto-1_1-x64.dll release/`
|
||||||
|
|
||||||
`$ cp $LOCAL_LIB/curl/lib/.libs/libcurl-4.dll release/`
|
`cp $LOCAL_LIB/curl/lib/.libs/libcurl-4.dll release/`
|
||||||
|
|
||||||
|
|
||||||
### Download cpuminer-opt
|
### Download cpuminer-opt
|
||||||
@@ -218,11 +218,9 @@ Create a link to the locally compiled version of gmp.h
|
|||||||
|
|
||||||
`ln -s $LOCAL_LIB/gmp-version/gmp.h ./gmp.h`
|
`ln -s $LOCAL_LIB/gmp-version/gmp.h ./gmp.h`
|
||||||
|
|
||||||
### Compile
|
|
||||||
|
|
||||||
`./autogen.sh`
|
`./autogen.sh`
|
||||||
|
|
||||||
Compile for the CPU architecture of the host machine:
|
Configure the compiler for the CPU architecture of the host machine:
|
||||||
|
|
||||||
`CFLAGS="-O3 -march=native -Wall" ./configure $CONFIGURE_ARGS`
|
`CFLAGS="-O3 -march=native -Wall" ./configure $CONFIGURE_ARGS`
|
||||||
|
|
||||||
@@ -246,9 +244,9 @@ can enable the CPU Groups feature by adding the following to CFLAGS:
|
|||||||
|
|
||||||
`-D_WIN32_WINNT==0x0601`
|
`-D_WIN32_WINNT==0x0601`
|
||||||
|
|
||||||
Once you have run configure successfully run make with n CPU threads:
|
Once you have run configure successfully run the compiler with n CPU threads:
|
||||||
|
|
||||||
make -j n
|
`make -j n`
|
||||||
|
|
||||||
Copy cpuminer.exe to the release directory, compress and copy the release
|
Copy cpuminer.exe to the release directory, compress and copy the release
|
||||||
directory to a Windows system and run cpuminer.exe from the command line.
|
directory to a Windows system and run cpuminer.exe from the command line.
|
||||||
|
|||||||
Reference in New Issue
Block a user