Skip to content

ubuntu系统打包carla--修改对应文件 - #3548

Merged
donghaiwang merged 35 commits into
OpenHUTB:hutbfrom
xiao-ma-gua:hutb
Jul 18, 2026
Merged

ubuntu系统打包carla--修改对应文件#3548
donghaiwang merged 35 commits into
OpenHUTB:hutbfrom
xiao-ma-gua:hutb

Conversation

@xiao-ma-gua

Copy link
Copy Markdown
Contributor

Description

Fixes #

Where has this been tested?

  • Platform(s): ...
  • Python version(s): ...
  • Unreal Engine version(s): ...

Possible Drawbacks

Comment thread .github/workflows/build_linux.yml
@donghaiwang

Copy link
Copy Markdown
Member

ubuntu 下的 runner 好像还没正常工作,需要检查下配置或者网络的问题:https://github.com/OpenHUTB/hutb/actions/runs/27119589378/job/80033434728

等windows和ubuntu下测试通过后即可合并

@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author

ubuntu 下的 runner 好像还没正常工作,需要检查下配置或者网络的问题:https://github.com/OpenHUTB/hutb/actions/runs/27119589378/job/80033434728

等windows和ubuntu下测试通过后即可合并

老师,我已经把服务器上旧的配置文件清理干净了,但我目前没有仓库的 Settings 权限,没法生成新的 Token。

@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author
图片

@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author

刚刚看了下师兄的账号 也没有权限

@donghaiwang

Copy link
Copy Markdown
Member

token发到邮箱了,请注意查收

Comment thread .github/workflows/build_linux.yml Outdated

- name: Configure Git Mirror for GitHub
run: |
git config --global url."https://mirror.ghproxy.com/https://github.com/".insteadOf "https://github.com/"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

尽量不要用这种,很不稳定,免费的可以用fastgithub、steam++等,可以实现快速地访问github

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的老师

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种不用回复,关注后会自动收到邮件

@xiao-ma-gua xiao-ma-gua closed this Jun 8, 2026
@xiao-ma-gua xiao-ma-gua reopened this Jun 9, 2026
@xiao-ma-gua xiao-ma-gua closed this Jun 9, 2026
@xiao-ma-gua xiao-ma-gua reopened this Jun 9, 2026
@xiao-ma-gua xiao-ma-gua closed this Jun 9, 2026
@xiao-ma-gua xiao-ma-gua reopened this Jun 10, 2026
@xiao-ma-gua xiao-ma-gua reopened this Jun 10, 2026
@donghaiwang

donghaiwang commented Jun 26, 2026

Copy link
Copy Markdown
Member

老师 有对应资产的仓库吗

资产仓库在腾讯工蜂中(https://OpenHUTB:T8w6TYB_r71gGTP3A02B@git.code.tencent.com/OpenHUTB/Content),可以修改

Comment thread Util/BuildTools/BuildUE4Plugins.sh Outdated
git fetch --all
git reset --hard origin/master
git lfs install
git stash

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么做的目的是什么,看打包报错是因为资产的问题

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先要在本地的action runner目录下执行这些命令保证能够成功

@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author
图片 本地不用return 0的方式也是是通过的

Comment thread Unreal/CarlaUE4/CarlaUE4.uproject Outdated
},
{
"Name": "RuntimeTests",
<<<<<<< HEAD

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

冲突没解决好遗漏的一些符号

…nt error

- 创建 RoadRunnerCarlaContent 内容插件,提供 /RoadRunnerCarlaContent/ 挂载点
- 在 .uproject 中注册并启用该插件
- 在 Package.sh 和 CI yml 中增加对应路径替换规则

修复 Cook 阶段报错:
Illegal call to DoesPackageExist: '/RoadRunnerCarlaContent/RR_TrafficLightManager'
is not a standard unreal filename (Error_UnknownCookFailure)
@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author
图片 线下是通过的

@donghaiwang

Copy link
Copy Markdown
Member

问题手动编译解决不了问题,需要自动化,不然后面会非常麻烦。
需要检查手动和自动两个环境上的区别

@xiao-ma-gua

Copy link
Copy Markdown
Contributor Author

老师 windows和linux的CI/CD都要通过才行吗

@donghaiwang

Copy link
Copy Markdown
Member

是的,你之前的一次修改把windows打包给搞坏了
image

@donghaiwang

donghaiwang commented Jul 15, 2026

Copy link
Copy Markdown
Member

你的提交历史,是7.13号的第一次触发导致windows自动编译失败,可能是这次提交导致的
image

禁用的这些插件 在windows下打包中电软件园、VR模式等功能是必须的,所以ubuntu下应该也要启用这些插件,如果这里的哪个插件不清楚源代码在哪,可以提出来,我发地址给你

@xiao-ma-gua

xiao-ma-gua commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

需要提供一下DatasmithGLTFImporter、CesiumForUnreal、RoadRunnerCarlaContent、RoadRunnerCarlaIntegration、RoadRunnerImporter、StreetMap、RoadRunnerCarlaDatasmith、RoadRunnerDatasmith、RoadRunnerRuntime这些插件的下载地址。
然后这些插件应该放在以下哪个目录下
~/actions-runner/_work/hutb/hutb/Unreal/CarlaUE4/Plugins 还是
~/UnrealEngine_4.26/Engine/Plugins

@donghaiwang

donghaiwang commented Jul 16, 2026

Copy link
Copy Markdown
Member

可以参考现在windows下setup.bat中的逻辑,写一个setup.sh,里面有下载所有依赖(包括虚幻没有的插件)的下载和初始化方法(注意有些不一定适配ubuntu,只在windows下测试通过,如果有不能在ubuntu下运行的包,需要下载相同版本的ubuntu包,都是开源的),脚本会把插件下载并拷贝到 hutb\Unreal\CarlaUE4\Plugins 目录下

@donghaiwang

Copy link
Copy Markdown
Member

恭喜,终于双系统都通过了,不过还有有不少问题,比如不规范、需要临时下载文件(尽量把依赖都放在腾讯工蜂仓库中,一次性下载下来,不依赖Linux机器上的其他软件)、没有测试完把目录全清空(保证下次开始是干净的目录)等,保证后面每次触发都能正常测试。
后面还有一个大目标就是把make check中的所有测试都添加进来,保证打包的发行版运行各种测试没有问题。

@donghaiwang
donghaiwang merged commit 08a357e into OpenHUTB:hutb Jul 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants