我想构建这个项目:https://github.com/xmrig/xmrig根据这里的说明:https://github.com/xmrig/xmrig/wiki/Windows-Build,但当我尝试运行时:
C:\Users\dmin\Documents\xmrig-2.3.1\build>cmake .. -G "Visual Studio 15 2017 Win
64"-T v140_xp -DCMAKE_BUILD_TYPE=Release -DUV_INCLUDE_DIR=C:\Program Files\libu
v\include -DUV_LIBRARY=C:\Program Files\libuv\Release\lib\libuv.lib
CMake Error: Could not create named generator Visual Studio 15 2017 Win64-T
我收到这些错误:
CMake Error: Could not create named generator Visual Studio 15 2017 Win64-T
Generators
Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
Optional [arch] can be "Win64" or "IA64".
Visual Studio 9 2008 [arch] = Generates Visual Studio 2008 project files.
Optional [arch] can be "Win64" or "IA64".
Visual Studio 8 2005 [arch] = Deprecated. Generates Visual Studio 2005
project files. Optional [arch] can be
"Win64".
Borland Makefiles = Generates Borland makefiles.
NMake Makefiles = Generates NMake makefiles.
NMake Makefiles JOM = Generates JOM makefiles.
Green Hills MULTI = Generates Green Hills MULTI files
(experimental, work-in-progress).
MSYS Makefiles = Generates MSYS makefiles.
MinGW Makefiles = Generates a make file for use with
mingw32-make.
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Watcom WMake = Generates Watcom WMake makefiles.
CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
CodeBlocks - NMake Makefiles JOM
= Generates CodeBlocks project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - MinGW Makefiles = Generates CodeLite project files.
CodeLite - NMake Makefiles = Generates CodeLite project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Sublime Text 2 - MinGW Makefiles
= Generates Sublime Text 2 project files.
Sublime Text 2 - NMake Makefiles
= Generates Sublime Text 2 project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
Kate - MinGW Makefiles = Generates Kate project files.
Kate - NMake Makefiles = Generates Kate project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Eclipse CDT4 - NMake Makefiles
= Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - MinGW Makefiles
= Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
我怎么解决?
PS:它没有重复,因为没有回答CMake Error: Could not create named generator Visual Studio 14 2015 win64
谢谢
答案 0 :(得分:1)
查看错误消息,它表示没有:
Visual Studio 15 2017 Win64-T
你可能会注意到cmake解析了你的命令合并Win64“和-T选项。在你粘贴的命令行中:
Win64“与-T 之间没有空格。
再次添加一个并运行命令。
答案 1 :(得分:0)
我遇到了同样的问题。但是我的问题是,我安装了Cygwin,而Cygwin拥有自己的内置C-make版本。我所做的是-从命令提示符(cmd)断开Cygwin的连接,然后重新构建它。然后它起作用了。确保没有像Cygwin这样的与命令提示符(cmd)绑定的内容,因为它们具有自己的'Cmake'版本。
一种检查方法是在命令提示符(cmd)中或搜索中键入“ cygwin”,然后尝试跟踪其文件来源,然后尝试从命令提示符中删除其联系,或者仅卸载使用其他版本的Cmake的应用程序。