我想使用 MinGW 和 MSYS 在 Windows 上编译这个 C++ 项目
项目链接:CPU Miner
源压缩包:CPU Miner.tar.gz
在 README 文件中,它说我必须:
* Make sure you have mstcpip.h in MinGW\include
* Make sure you have libcurl.m4 in MinGW\share\aclocal
* Make sure you have curl-config in MinGW\bin
这些文件中没有一个在我电脑的正确位置,我不知道在哪里可以找到主题。
你能给我详细的编译说明吗? (我是新手)
答案就在 README 中您引用的文件...
Basic Windows build instructions, using MinGW:
Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
* Make sure you have mstcpip.h in MinGW\include
If using MinGW-w64, install pthreads-w64
Install libcurl devel (http://curl.haxx.se/download.html)
* Make sure you have libcurl.m4 in MinGW\share\aclocal
* Make sure you have curl-config in MinGW\bin
In the MSYS shell, run:
./autogen.sh # only needed if building from git repo
LIBCURL="-lcurldll" ./configure CFLAGS="-O3"
make
没有比这更详细的了。