|
|
@ -1,6 +1,6 @@ |
|
|
|
###################################################################################### |
|
|
|
###################################################################################### |
|
|
|
# # |
|
|
|
# # |
|
|
|
# Native WIN32 setup and build instructions (on mingw32/Windows): # |
|
|
|
# SGMINER WIN32 setup and build instructions (on mingw32/Windows): # |
|
|
|
# # |
|
|
|
# # |
|
|
|
###################################################################################### |
|
|
|
###################################################################################### |
|
|
|
|
|
|
|
|
|
|
@ -34,14 +34,13 @@ what you copied. |
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
* Install mingw32 * |
|
|
|
* Install mingw32 * |
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
Go to this url ==> http://www.mingw.org/wiki/Getting_Started |
|
|
|
Download and install the following Mingw32 version by doing a google search for: |
|
|
|
Click the link that says "Download and run the latest mingw-get-inst version." |
|
|
|
"mingw-get-inst-20120426" |
|
|
|
Download and run the latest file. Install MinGW in the default directory. |
|
|
|
*This is currently a known working version as of SGMINER 4.0.0, but this could be a |
|
|
|
(I downloaded the one labeled "mingw-get-inst-20120426" - note that this could |
|
|
|
different version later. |
|
|
|
be a different version later.) |
|
|
|
|
|
|
|
Make sure to check the option for "Download latest repository catalogs". |
|
|
|
During installation, select all the check boxes (excluding "Fortran Compiler") so that |
|
|
|
I just selected all the check boxes (excluding "Fortran Compiler") so that everything |
|
|
|
everything is installed. |
|
|
|
was installed. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
* Run the MSYS shell for the first time to create your user directory * |
|
|
|
* Run the MSYS shell for the first time to create your user directory * |
|
|
@ -64,6 +63,10 @@ window. |
|
|
|
Copy sgminer source code directory into: |
|
|
|
Copy sgminer source code directory into: |
|
|
|
\MinGW\msys\1.0\home\(folder with your user name) |
|
|
|
\MinGW\msys\1.0\home\(folder with your user name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For SGMINER it will look like: |
|
|
|
|
|
|
|
\MinGW\msys\1.0\home\(folder with your user name)\Sgminer-Master\ |
|
|
|
|
|
|
|
when unzipped. |
|
|
|
|
|
|
|
|
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
* Install AMD APP SDK, latest version (only if you want GPU mining) * |
|
|
|
* Install AMD APP SDK, latest version (only if you want GPU mining) * |
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
@ -72,7 +75,7 @@ Go to this url for the latest AMD APP SDK: |
|
|
|
http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/ |
|
|
|
http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/ |
|
|
|
Go to this url for legacy AMD APP SDK's: |
|
|
|
Go to this url for legacy AMD APP SDK's: |
|
|
|
http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/download-archive/ |
|
|
|
http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/download-archive/ |
|
|
|
Download and install whichever version you like best. |
|
|
|
Download and install the Windows 32 bit version. |
|
|
|
Copy the folders in \Program Files (x86)\AMD APP\include to \MinGW\include |
|
|
|
Copy the folders in \Program Files (x86)\AMD APP\include to \MinGW\include |
|
|
|
Copy \Program Files (x86)\AMD APP\lib\x86\libOpenCL.a to \MinGW\lib |
|
|
|
Copy \Program Files (x86)\AMD APP\lib\x86\libOpenCL.a to \MinGW\lib |
|
|
|
Note: If you are on a 32 bit version of windows "Program Files (x86)" will be |
|
|
|
Note: If you are on a 32 bit version of windows "Program Files (x86)" will be |
|
|
@ -105,8 +108,8 @@ Note: If you are on a 32 bit version of windows "Program Files (x86)" will be |
|
|
|
* Install pkg-config * |
|
|
|
* Install pkg-config * |
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
Go to this url ==> http://www.gtk.org/download/win32.php |
|
|
|
Go to this url ==> http://www.gtk.org/download/win32.php |
|
|
|
Scroll down to where it shows pkg-cfg. |
|
|
|
Scroll down to where it shows pkg-cfg under GTK+ 2.x |
|
|
|
Download the file from the tool link. Extract "pkg-config.exe" from bin and place in |
|
|
|
Download the file from the "Tool" link. Extract "pkg-config.exe" from bin and place in |
|
|
|
your \MinGW\bin directory. |
|
|
|
your \MinGW\bin directory. |
|
|
|
Download the file from the "Dev" link. Extract "pkg.m4" from share\aclocal and place |
|
|
|
Download the file from the "Dev" link. Extract "pkg.m4" from share\aclocal and place |
|
|
|
in your \MingW\share\aclocal directory. |
|
|
|
in your \MingW\share\aclocal directory. |
|
|
@ -120,8 +123,8 @@ Win32 2000.XP 7.27.0 libcurl SSL and download it. |
|
|
|
The one I downloaded may not be current for you. Choose the latest. |
|
|
|
The one I downloaded may not be current for you. Choose the latest. |
|
|
|
Extract the files that are in the zip (bin, include, and lib) to their respective |
|
|
|
Extract the files that are in the zip (bin, include, and lib) to their respective |
|
|
|
locations in MinGW (\MinGW\bin, \MinGW\include, and \MinGW\lib). |
|
|
|
locations in MinGW (\MinGW\bin, \MinGW\include, and \MinGW\lib). |
|
|
|
Edit the file \MinGW\lib\pkgconfig\libcurl.pc and change "-lcurl" to |
|
|
|
Edit the file \MinGW\lib\pkgconfig\libcurl.pc and search for the line that ends |
|
|
|
"-lcurl -lcurldll". |
|
|
|
with "-lcurl", and make it say "-lcurl -lcurldll". |
|
|
|
Ref. http://old.nabble.com/gcc-working-with-libcurl-td20506927.html |
|
|
|
Ref. http://old.nabble.com/gcc-working-with-libcurl-td20506927.html |
|
|
|
|
|
|
|
|
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
@ -130,17 +133,21 @@ Ref. http://old.nabble.com/gcc-working-with-libcurl-td20506927.html |
|
|
|
Run the MinGW MSYS shell |
|
|
|
Run the MinGW MSYS shell |
|
|
|
(Start Icon/keyboard key ==> All Programs ==> MinGW ==> MinGW Shell). |
|
|
|
(Start Icon/keyboard key ==> All Programs ==> MinGW ==> MinGW Shell). |
|
|
|
Change the working directory to your sgminer project folder. |
|
|
|
Change the working directory to your sgminer project folder. |
|
|
|
Example: cd sgminer-2.1.2 [Enter Key] if you are unsure then type "ls -la" |
|
|
|
Example: cd sgminer-master [Enter Key] if you are unsure then type "ls -la" |
|
|
|
Another way is to type "cd cg" and then press the tab key; It will auto fill. |
|
|
|
Another way is to type "cd sg" and then press the tab key; It will auto fill. |
|
|
|
Type the lines below one at a time. Look for problems after each one before going on |
|
|
|
Type the lines below one at a time. Look for problems after each one before going on |
|
|
|
to the next. |
|
|
|
to the next. |
|
|
|
|
|
|
|
|
|
|
|
adl.sh (optional - see below) |
|
|
|
adl.sh (optional - see below - skip this entirely) |
|
|
|
autoreconf -fvi |
|
|
|
autoreconf -fvi |
|
|
|
CFLAGS="-O2 -msse2" ./configure (additional config options, see below) |
|
|
|
CFLAGS="-O2 -msse2" ./configure (additional config options, see below) |
|
|
|
make |
|
|
|
make |
|
|
|
strip sgminer.exe <== only do this if you are not compiling for debugging |
|
|
|
strip sgminer.exe <== only do this if you are not compiling for debugging |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In the event ther are error messages, you MAY have to start from scratch by going |
|
|
|
|
|
|
|
back to the "Install AMD APP SDK, latest version" step because these lines will modify |
|
|
|
|
|
|
|
your files from the original form. |
|
|
|
|
|
|
|
|
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|
* Copy files to a build directory/folder * |
|
|
|
* Copy files to a build directory/folder * |
|
|
|
************************************************************************************** |
|
|
|
************************************************************************************** |
|
|
|