Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Detailed Windows build instructions, using MinGW (64-bit):
- Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
- * Choose C, C++ and MSys on install and select to have it update its libraries
- * Install into C:\MinGW
- * Add C:\MinGW\bin and c:\MinGW\msys\1.0 to your path
- Download MinGW64 from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/
- * Choose mingw-w64-bin_i686-mingw_20111220.zip
- * Extract ZIP to C:\MinGW64
- * Add C:\MinGW64\bin to your path before C:\MinGW\bin
- Install libcurl devel (http://curl.haxx.se/download.html)
- * download curl-7.30.0.tar.gz from http://curl.haxx.se/download.html and put it in C:\deps\
- * launch an MSYS shell and enter the following commands (the configure step will take a long time!)
- cd /c/deps
- tar -xvzf curl-7.30.0.tar.gz
- cd curl-7.30.0
- ./configure --host=x86_64-w64-mingw32 –-prefix=/c/mingw64
- make
- make install
- cp /c/deps/curl-7.30.0/docs/libcurl/libcurl.m4 /c/mingw/share/aclocal/libcurl.m4
- Install pthreads
- * download pthreads-20100604.zip from http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/pthreads/ and put it in C:\deps\
- * unzip the file to c:\deps\
- * In the mingw64 subdirectory is pthreads-w64.zip - extract the contents to C:\MinGW64
- Configure mingw path
- * create C:\MinGW\msys\1.0\etc\fstab with following configuration:
- c:/mingw /mingw
- In the MSYS shell, navigate to the CPUminer source code direcctory
- * You will likely get higher hashrates by forcing the compiler to build the executable for your
- specific CPU architecture. This is done by adding "-march=<value>" into the CFLAGS. Those
- values can be found at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86-64-Options.html#i386-and-x86-64-Options
- common choices for intel are : core2, corei7, corei7-avx
- common choices for AMD are : athlon-fx
- or -msse2,-msse3,-msse4,-mavx ...
- * Execute the following (replacing the value of -march with the value for your CPU type)
- ./autogen.sh
- ./configure --host=x86_64-w64-mingw32 CFLAGS="-O3 -march=core2"
- make
- Strip minerd.exe
- * Execute the following:
- x86_64-w64-mingw32-strip minerd.exe
- Combine the executable with the dependencies
- * copy minerd.exe, C:\MinGW64\bin\libcurl-4.dll, and C:\MinGW64\bin\pthreadGC2-w64.dll to the same directory
- For Win32 target hosts
- Prepare compilations
- * place mstcpip.h and _mingw_unicode.h in MinGW\include (they already exist in the MinGW installation tree)
- Configure Curl compiling with:
- * ./configure --host=i686-pc-mingw32 CPPFLAGS="-DWIN32 -DWIN32_LEAN_AND_MEAN" –-prefix=/c/mingw
- Clean previous compilations and execute same steps as Win64 targets
- * make clean
- make
- make install
- if not already done, as the file never changes: cp /c/deps/curl-7.30.0/docs/libcurl/libcurl.m4 /c/mingw/share/aclocal/libcurl.m4
- Add pthreads win32 package:
- * through the MinGW Installation manager
- Configure CPUMiner compiling with:
- * ./autogen.sh
- ./configure --host=i686-pc-mingw32 CPPFLAGS="-DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN" CFLAGS="-O2 -march=core2"
- (Note: only O2 optimization to avoid crash. core2 architecture ideal for Xeon processor)
- Clean previous compilations and Compile CPUMiner
- * make clean
- make
- Strip minerd.exe
- * mingw32-strip minerd.exe
- Combine the executable with the dependencies
- * copy minerd.exe, C:\MinGW\bin\libcurl-4.dll, C:\MinGW\bin\pthreadGC2.dll and C:\MinGW\bin\libgcc_s_dw2-1.dll to the same directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement