-
Notifications
You must be signed in to change notification settings - Fork 338
Windows Build
xmrig edited this page Oct 6, 2017
·
4 revisions
There two options Microsoft Visual Studio 2015/2017 or MSYS2 both required libuv build and cmake.
- You can use prebuilt dependencies for your builds https://github.com/xmrig/xmrig-deps/releases.
- If you just want change file icon or description don't need to compile, you can use tools like Resource Hacker.
Use mingw64.exe shell. Necessary MSYS2 packages:
pacman -Sy
pacman -S mingw-w64-x86_64-gcc
pacman -S make
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-pkg-config
CMake build:
cmake .. -G "Unix Makefiles" -DUV_INCLUDE_DIR="c:\<path>\libuv\include" -DUV_LIBRARY="c:\<path>\libuv\.libs\libuv.a"
make
Use mingw32.exe shell. Necessary MSYS2 packages:
pacman -Sy
pacman -S mingw-w64-i686-gcc
pacman -S make
pacman -S mingw-w64-i686-cmake
pacman -S mingw-w64-i686-pkg-config
CMake build:
cmake .. -G "Unix Makefiles" -DUV_INCLUDE_DIR="c:\<path>\libuv\include" -DUV_LIBRARY="c:\<path>\libuv\.libs\libuv.a"
make
Go to directory with source, then:
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -DUV_INCLUDE_DIR=c:\<path>\libuv\include -DUV_LIBRARY=c:\<path>\libuv\Release\lib\libuv.lib
It will create Visual Studio Solution file xmrig-proxy.sln. Don't forget change Debug to Release build.
-
-DWITH_HTTPD=OFF
Build without built in http server and API.