UnityRenderStreaming使用记录(三)
测试UnityRenderStreaming在Ubuntu24.04.1LTS上的表现
- 先放上运行图
- 操作系统 Ubuntu24.04.1LTS
- Unity测试工程
- 环境相关修改
- 遇到的问题
先放上运行图
操作系统 Ubuntu24.04.1LTS
- 系统下载地址 https://cn.ubuntu.com/download/desktop
- 安装UnityHub https://blog.csdn.net/AWNUXCVBN/article/details/126456365
Unity测试工程
- 工程地址 https://gitee.com/awnuxcvbn/UnityRenderStreaming
环境相关修改
- 改清华源 https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
- sudo apt install nodejs
- sudo apt install npm
- npm改源 npm config set registry https://registry.npmmirror.com 查看当前源 npm config get registry
遇到的问题
- 打包出的程序运行黑屏、卡屏,日志路径 /home/xuefei/.config/unity3d/DefaultCompany/Unity/Player.log 日志中有 implib-gen: libX11.so: failed to load library: libX11.so: cannot open shared object file: No such file or directory sudo apt install libx11-dev解决
- 打开项目随机卡死的问题, 测试启动参数里加入-DisableDirectoryMonitor 没有效果,按照https://discussions.unity.com/t/linux-editor-stuck-on-loading-because-of-bee-backend-w-workaround/854480 解决
go to your unity editor folder, then in the Data folder
rename bee_backend to bee_backend_real
create a bee_backend file, make it executable
write the following in the newly created bee_backend file
#! /bin/bashargs=("$@")
for ((i=0; i<"${#args[@]}"; ++i))
docase ${args[i]} in--stdin-canary)unset args[i];break;;esac
done
${0}_real "${args[@]}"
- 启动webserver错误
sudo ./webserver 默认是80端口,如果80 端口被占用,就换一个比如sudo ./webserver -p 90
或者 查看谁在占用干掉它
xuefei@xuefei:~/UnityRenderStreaming/WebApp$ sudo netstat -tulnp | grep 80
tcp6 6 0 :::80 :::* LISTEN 94265/./webserver
xuefei@xuefei:~/UnityRenderStreaming/WebApp$ sudo kill -9 94265
未完待续……
25.1.2没啥可续的了……