mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
VS2010 build: Static pthreads compiling and linking.
This commit is contained in:
parent
70845714b5
commit
21c007e842
@ -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
|
||||
-----------------------------------------------
|
||||
|
@ -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>
|
||||
</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…
x
Reference in New Issue
Block a user