677.2 fatal: cannot create directory at 'blink/web_tests/external/wpt': No space left on device
ERROR: failed to solve: process "/bin/sh -c pushd .." did not complete successfully: exit code: 127
pushd和popd
整体相当于执行cd .. 和 cd -
操作,这里可以使用cd操作或者直接使用WORKDIR
进行目录定位进行操作webrtc-stream
后需要拉取相关代码依赖git submodule init
git submodule update
fetch webrtc
代码之后需要再执行gclient sync
进行同步操作qemu-x86_64: Could not open '/lib64': No such file or directory
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
ld-linux-x86-64.so.1
docker build --platform linux/x86_64 -t webrtc-stream-test .
66.91 [ 99%] Building CXX object CMakeFiles/webrtc-streamer.dir/src/rtspvideocapturer.cpp.o
68.35 make[2]: *** No rule to make target '../webrtc/src/out/Release/obj/rtc_base/librtc_json.a', needed by 'webrtc-streamer'. Stop.
68.35 make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/webrtc-streamer.dir/all] Error 2
68.35 make: *** [Makefile:156: all] Error 2
然后尝试后后并没有解决,继续翻看issue,看到#619
make文件不存在,且截止目前该issue仍处于open状态,根据帖子所说直接docker run到已有镜像中,先删除生成文件,然后重新执行编译,惊奇的是结果竟然成功了
看到这个结果时我是很的,那么肯定不是命令的问题,肯定是脚本存在相关问题,继续检查脚本,最终发现问题出现在目录定位不对,更改成功后可以直接使用