Browse Source

VS2010 build: Static pthreads compiling and linking.

nfactor-troky
troky 11 years ago committed by Noel Maersk
parent
commit
21c007e842
  1. 14
      winbuild/README.txt
  2. 6
      winbuild/sgminer.vcxproj

14
winbuild/README.txt

@ -3,9 +3,17 @@ Installing dependencies @@ -3,9 +3,17 @@ Installing dependencies
1. PThreads
-----------
- download ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip
- extract dll, include and lib folders from Pre-built.2 to winbuild/dist
- go to ftp://sourceware.org/pub/pthreads-win32 and download latest source code release
- extract to some folder
x86 version:
- open Visual Studio Command Prompt (x86)
- go to pthreads.2 folder and execute:
nmake clean VC-static
- copy newly created pthreadVC2.lib to winbuild\dist\lib\x86\ folder
x64 version:
- go to pthreads.2 folder and execute:
nmake clean VC-static
- copy newly created pthreadVC2.lib to winbuild\dist\lib\x64\ folder
2. Install AMD APP SDK (OpenCL), latest version
-----------------------------------------------

6
winbuild/sgminer.vcxproj

@ -170,8 +170,7 @@ del /f "$(OutDir)*.dll"</Command> @@ -170,8 +170,7 @@ del /f "$(OutDir)*.dll"</Command>
<IgnoreSpecificDefaultLibraries>LIBCMT</IgnoreSpecificDefaultLibraries>
</Link>
<PostBuildEvent>
<Command>xcopy /Y "$(ProjectDir)\dist\dll\x86\pthreadVC2.dll" "$(OutDir)"
xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel"
<Command>xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel"
</Command>
</PostBuildEvent>
<PreBuildEvent>
@ -208,8 +207,7 @@ del /f "$(OutDir)*.dll"</Command> @@ -208,8 +207,7 @@ del /f "$(OutDir)*.dll"</Command>
</LinkTimeCodeGeneration>
</Link>
<PostBuildEvent>
<Command>xcopy /Y "$(ProjectDir)\dist\dll\x64\pthreadVC2.dll" "$(OutDir)"
xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel"
<Command>xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel"
</Command>
</PostBuildEvent>
<PreBuildEvent>

Loading…
Cancel
Save