-
最新的2.6.8,服务器上执行xmake service --distcc --start,提示成功,配置文件也生成了。客户端配置client.conf,确保IP和token没错,执行xmake service --connect --distcc,提示连接成功。再执行xmake,只提示一句话,<remote_build_client>: run xmake in 192.168.1.100:9691,然后没反应了。看起来像是执行了远程编译,但是也没输出。客户端没在编译。另外,一开始会上传所有源码,这是不是没必要?工程比较大,上传花了很久,一些没必要的文件也上传了,例如生成的VS工程。fastbuild是在本地进行预处理,然后分发处理好的文件给各个客户端编译,不需要上传全部。 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
用过-vD选项,客户端还是没有任何输出,服务器log显示编译失败。因为有些源代码是需要自动生成,这些文件本地已经生成了,但是并没有上传到服务器。另外日志文件里面包含了很多颜色控制符,看起来很不直观 |
Beta Was this translation helpful? Give feedback.
-
那是因为连到 远程编译的 服务上去了。。没有连到 分布式编译服务。。。
xmake service --distcc -vD 然后,客户端删了 另外,确认下两端的端口是否一致。。分布式服务端口是 9693 ,远程编译服务是 9691 。。端口不要配置错误 |
Beta Was this translation helpful? Give feedback.
-
我重新试了一下,用xmake service --distcc -vD启动服务器,再xmake service --connect --distcc -vD,服务器和客户端都提示成功,再执行xmake的时候,提示server unreachable。然后我把client.conf里面的remote_build和remote_cache的配置删除,只保留distcc_build,再执行xmake,提示config(remote_build.connect): not found! 感觉还是远程编译,没有分布式编译 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
C:\build>xmake -vD stack traceback: |
Beta Was this translation helpful? Give feedback.
-
那是因为你刚删了 相关配置,先不要去删 |
Beta Was this translation helpful? Give feedback.
那是因为连到 远程编译的 服务上去了。。没有连到 分布式编译服务。。。
xmake service --distcc --start
先不要开 --start ,去掉后,加-vD
,在前台开下符号,看下服务 logs 。。然后贴过来xmake service --distcc -vD
然后,客户端删了
rm -rf .xmake
,然后重连下xmake service --connect --distcc -vD
试试,也加上 -vD 。。给下完整 logs另外,确认下两端的端口是否一致。。分布式服务端口是 9693 ,远程编译服务是 9691 。。端口不要配置错误