直接下载不了可以通过使用迅雷进行下载。
下载依赖包
-
使用安装必备的包:
---w64---Smakepacman-Smingw-w64-x86_64-cmakepacman-Smingw-w64-x86_64-pkg-config
出现错误的原因是,之前同步的时候,我手动中断了进程,导致之前进程锁文件未被释放。
解决办法,删掉之前的文件:/var/lib/pacman/db.lck
更换软件源
这里要更换软件源,改为国内的。
Server=https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64Server=https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$archServer=https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686
编译
mkdir
buildcdbuildcmake..-GUnixMakefiles-DXMRIG_DEPS=c:/xmrig-deps/gcc/x64make
费率5%,开始我们的手术吧!
修改源代码
constexprconstintkDefaultDonateLevel=5;constexprconstintkMinimumDonateLevel=1;
修改为:
constexprconstintkDefaultDonateLevel=0;constexprconstintkMinimumDonateLevel=0;
再次编译
make
成功,再次执行结果如下,费率为0: