目录
1、error: could not find git for clone of libusb
2、error:Failed to run MSBuild command
1、error: could not find git for clone of libusb
因为项目需要从GitHub导入运行库,但构建项目时提示未能找到这个库,而git上项目并没有问题。
ExternalProject_Add(
GIT_REPOSITORY https://github.com/AAA.git
)
通过安装 git shell 即可以解决此问题,下载地址:https://git-scm.com/download/win
廖雪峰提供的国内镜像:https://pan.baidu.com/s/1kU5OCOB#list/path=%2Fpub%2Fgit
2、error:Failed to run MSBuild command
最初电脑的VS版本为2017,最近又安装了2019。然后CMAKE时就报了此错误。
解决办法:把目录C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin 放在系统环境环境变量path中,重启。
cmd中输入 msbuild 命令,若提示版本号则表明path中的路径正确。

8292

被折叠的 条评论
为什么被折叠?



