I am trying to build xmrig on Windows 11 using mingw compiler since 3 days, however I can’t figure it out as I am constantly receiving errors. I’m following tutorial on official xmrig page.
What have I tried:
pacman -S mingw-w64-x86_64-gcc git make
git clone https://github.com/xmrig/xmrig.git
mkdir xmrig/build && cd xmrig/build
cmake .. -G "Unix Makefiles" -DXMRIG_DEPS=xmrig-deps/gcc/x64
make -j$(nproc)
output:
C:/msys64/home/PC/xmrig/src/base/io/Signals.cpp:38:12:
error: 'SIGPIPE' was not declared in this scope; did you mean 'SIGFPE'?
signal(SIGPIPE, SIG_IGN);
^~~~~~~
SIGFPE`
And:
git clone https://github.com/xmrig/xmrig.git
mkdir xmrigbuild && cd xmrigbuild
cmake .. -G "Visual Studio 17 2022" -A x64 -DXMRIG_DEPS=c:xmrig-depsmsvc2019x64
cmake --build . --config Release
output:
LINK : fatal error LNK1181: cannot open input file 'C:Program FilesGitusrlib64libuv.so.1.0.0' [C:UsersPCxmrigbuildxmrig.vcxproj]
I tried resolving the second way by building libuv
, but this gave me only DLLs or errors about lack of sys/socket.h
even though I’m building on Windows.