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
1. PThreads 1. PThreads
----------- -----------
- download ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip - go to ftp://sourceware.org/pub/pthreads-win32 and download latest source code release
- extract dll, include and lib folders from Pre-built.2 to winbuild/dist - 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 2. Install AMD APP SDK (OpenCL), latest version
----------------------------------------------- -----------------------------------------------

6
winbuild/sgminer.vcxproj

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

Loading…
Cancel
Save