当尝试生成CMake缓存时,它抛出:
1>正在将文件复制到远程计算机...
1>无法创建目录,mkdir退出代码:1
我已经尝试了这些配置,并且可以通过腻子通过ssh访问vmware机器。
{
"name": "Linux-Debug 16v2",
"generator": "Unix Makefiles",
"configurationType": "Debug",
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeExecutable": "/usr/local/bin/cmake",
"remoteCopySourcesExclusionList": [ ".vs", ".git" ],
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "linux_x64" ],
"remoteMachineName": "192.168.117.129",
"remoteCMakeListsRoot": "/var/tmp/src/${workspaceHash}/${name}",
"remoteBuildRoot": "/var/tmp/build/${workspaceHash}/build/${name}",
"remoteInstallRoot": "/var/tmp/build/${workspaceHash}/install/${name}",
"remoteCopySources": true,
"rsyncCommandArgs": "-t --delete --delete-excluded",
"remoteCopyBuildOutput": false,
"remoteCopySourcesMethod": "rsync",
"variables": []
},
{
"name": "Linux-Debug vmware-workstation",
"generator": "Unix Makefiles",
"remoteMachineName": "192.168.117.129",
"configurationType": "Debug",
"remoteCMakeListsRoot": "/var/tmp/src/${workspaceHash}/${name}",
"cmakeExecutable": "/usr/local/bin/cmake",
"buildRoot": "${env.LOCALAPPDATA}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"remoteBuildRoot": "/var/tmp/build/${workspaceHash}/build/${name}",
"remoteCopySources": true,
"remoteCopySourcesOutputVerbosity": "Normal",
"remoteCopySourcesConcurrentCopies": "10",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "linux-x64" ]
}
我也尝试连接到运行linux的vps,但我发现此错误:
1>正在将文件复制到远程计算机...
1> rsync -t --delete --delete-excluded -v -r --exclude = .vs --exclude = .git --exclude = .vs --exclude = .git / D / HELLOWORLD / rsync :// root @ localhost:50001 / temp
1> @ERROR:chdir失败
1> rsync错误:在/C/Users/t-elmor/rsync-3.0.8-1-msys-1.0.17-src.tar/rsync-3.0处启动客户端-服务器协议(代码5)时出错。 8-1-msys-1.0.17-src / rsync-3.0.8 / main.c(1516)[sender = 3.0.8]
1>复制时出错。请参阅https://aka.ms/AA23jat进行故障排除。 完成配置切换到Linux-Debug 16。