forked from xmrig/xmrig
-
Notifications
You must be signed in to change notification settings - Fork 4
Windows Build
xmrig edited this page Mar 11, 2019
·
12 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.
- For 32 bit better choice use MSYS2 significantly better performance, anyway 64 bit builds always faster.
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:
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=c:/xmrig-deps/gcc/x64
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:
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=c:/xmrig-deps/gcc/x86
make
Go to directory with source, then:
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -DXMRIG_DEPS=c:\xmrig-deps\msvc2017\x64
It will create Visual Studio Solution file xmrig.sln. Don't forget change Debug to Release build.
-
-DWITH_LIBCPUID=OFF
Disable libcpuid. Auto configuration of CPU after this will be very limited. -
-DWITH_AEON=OFF
Disable CryptoNight-Lite algorithm and all derived variants. -
-DWITH_SUMO=OFF
Disable CryptoNight-Heavy algorithm and all derived variants. -
-DWITH_CN_PICO=OFF
Disable CryptoNight-Pico algorithm. -
-DWITH_CN_GPU=OFF
Disable CryptoNight-GPU algorithm. -
-DWITH_HTTPD=OFF
Disable built in http server and API. -
-DWITH_DEBUG_LOG=ON
Enable debug log output. -
-DWITH_TLS=OFF
Disable SSL/TLS support. -
-DWITH_ASM=OFF
Disable assembly language support. It will dramatically slowdowncn/2
based algorithms includingcn/r
. -
-DWITH_EMBEDDED_CONFIG=ON
Enable internal embedded JSON config #957. -
-DBUILD_STATIC=ON
Add linker flag-static
.