Windows 上的 CPU Miner 编译
CPU Miner Compilation on Windows
我想使用 MinGW 和 MSYS 在 Windows 上编译这个C++项目
项目链接:CPU矿机
源码包:CPU 矿工.tar.gz
在自述文件中,它说我必须:
* Make sure you have mstcpip.h in MinGWinclude
* Make sure you have libcurl.m4 in MinGWshareaclocal
* Make sure you have curl-config in MinGWbin
这些文件没有一个在我的计算机的正确位置,我不知道在哪里可以找到主题。
你能给我一个详细的说明如何编译它吗?(我是新手)
答案就在您引用的自述文件中...
基本Windows构建说明,使用MinGW: 安装 MinGW 和 MSYS 开发人员工具包 (http://www.mingw.org/) * 确保你在 MinGW\include 中有 mstcpip.h 如果使用 MinGW-w64,请安装 pthreads-w64 安装 libcurl devel (http://curl.haxx.se/download.html) * 确保你在 MinGW\share\aclocal 中有 libcurl.m4 * 确保你在 MinGW\bin 中有 curl-config 在 MSYS 外壳中,运行: ./autogen.sh # 仅在从 git 存储库构建时才需要 LIBCURL="-lcurldll" ./configure CFLAGS="-O3" 做
没有比这更详细的了。