본문 바로가기
page 2 .기타공유

xmr-stak cpu compile

by 나의나된것은 2017. 10. 24.
반응형


아래 사이트 참고하여서 만들었습니다.


https://github.com/fireice-uk/xmr-stak-cpu/blob/master/WINCOMPILE.md


1. 시작 눌러서 파일 및 프로그램 검색? 에서 cmd 입력

   1.1 mkdir c:\xmr-stak_dep 입력합니다.


2. Visual Studio 2017 Community 2017 무료 다운로드

   3.1 다운로드 실행하기

   3.2 C++를 사용한 데스크톱 개발 선택 -> 오른쪽 리스트에서 데스크톱용 VC++ 2015.3 V140 도구 집합....



4. Cmake for Win64 다운로드 https://cmake.org/download/

   릴리즈 버전을 받아야 합니다. 출시예정 버전 받아서 설치하는게 없어서 한참 찾았네요.

   또한 msi 버전이 편하네요. (패스 추가 선택 해야함.)

   zip 버전은 패스를 개인적으로 추가 해야 합니다.


5. DEpendencies OpenSSl/... 다운로드 https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip


    5.1 압축 풀기 C:\xmr-stak-dep


6. 폴더 구조 점검하기~


    6.1 cmd 창 실행하기(1번참고)

    6.2  cd c:\xmr-stak-dep

         tree .



 C:\xmr-stak-dep>tree .
  Folder PATH listing for volume Windows
  Volume serial number is XX02-XXXX
  C:\XMR-STAK-DEP
  ├───hwloc
  │   ├───include
  │   │   ├───hwloc
  │   │   │   └───autogen
  │   │   └───private
  │   │       └───autogen
  │   └───lib
  ├───libmicrohttpd
  │   ├───include
  │   └───lib
  └───openssl
      ├───bin
      ├───include
      │   └───openssl
      └───lib



7. 컴파일 하기


xmr-stak-cpu 다운하고 압축을 푼다.  https://github.com/fireice-uk/xmr-stak-cpu/releases


cmd 실행하고



압축 푼 폴더에서 아래 명령어 실행


"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"


set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl


mkdir build


cd build


cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..


msbuild xmr-stak-cpu.sln /p:Configuration=Release


cd bin\Release


copy ..\..\..\config.txt .


config파일을 수정 하고 사용하면 끝~



반응형