配置flycv时,cmake以下代码会报错第二行的错误,网上解决方法为第三行代码
cmake .. -G "Visual Studio 16 2019 Win64"
CMake Error: Could not create named generator Visual Studio 16 2019
cmake .. -G "Visual Studio 16 2019" -A x64
windows上常用cmake vs命令
Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
Use -A option to specify architecture.
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".
2017 以下的32位:
cmake -G "Visual Studio 15 2017 " ..
2017 以下的64位:
cmake -G "Visual Studio 15 2017 Win64" ..
2019 的64位,默认64位:
cmake -G "Visual Studio 16 2019 " ..
2019 以下的32位:
cmake -G "Visual Studio 16 2019 -A "Win32" ..