简介
此文章根据个人在安装carla时遇到的常见问题做了个简单汇总。以官方文档为准,好好查看文档。
github下载UE4源码并安装的问题
如何绑定github和ue账号
参考此链接:ue on github
注意,绑定完成后会在个人邮箱中收到一个加入EpicGames/developers的邮件,在打开个人邮箱同意后才能看到 UnrealEngine仓库。确认是否加入成功的方式为,在github的主页的左下角会出现your teams并且会看到EpicGames/developers的列表。
github账号如何生成token密码
要生成的token为calssic版,在github上按如下步骤生成:
- Settings
- Developer settings
- Personal access tokens (classic)
- Generate new token
-
- select scopes: repo勾选上,生成新token
注意,生成的token以ghp_开头。
安装carla如果使用docker如何下载UE4源码并安装
执行
$ sudo docker build --build-arg EPIC_USER=xxx --build-arg EPIC_PASS=ghp_xxxyyyzzz -t carla-prerequisites -f Prerequisites.Dockerfile .
其中,EPIC_USER使用绑定了有epic账号的github账号用户名,而不是邮箱名,EPIC_PASS使用刚生成的access token的classic版。
构建UE4时遇到的不可写入问题
要执行UE4Editor时需要将其自身所在的UnrealEngine_4.26文件夹的权限进行变更使其具有写入权限,否则会报出
“Could not access DDC, Local data cache path is ‘…/…/…/Engine/DirivedDataCache’unavailable so cache will be disabled.”
的错误,原因正是数据缓存文件夹不能写入。
解决方法:
$ sudo chmod -R a+w ~/UnrealEngine_4.26
carla构建时下载失败问题
make LibCarla会报错如与boost相关的HTTP request sent, awaiting response… 403 Forbidden问题
解决方法:
换一下下载源即可,修改carla/Util/BuildTools/Setup.sh中其下载地址为:
wget "https://sourceforge.net/projects/boost/files/boost/1.80.0/boost_1_80_0.tar.gz"
启动UE4后遇到的弹框报错:
有报错:
Plugin 'ExampleDeviceProfileSelector failed to load because module ‘ExampleDeviceProfileSeletor’ could not be found. Please ensure the plugin is properly installed, otherwise consider disabling the plugin for this project
解决方法:
- 方法一:UnrealEngine_4.26/Engine/Plugins/Runtime下找到对应模块的.uplugin文件,打开并修改EnableByDefault并修改即可。
- 方法二: 注意执行权限
$ ./Setup.sh && ./GenerateProjectFiles.sh && make
因为make PythonAPI, make launch因为目录路径问题导致的失败
使用make clean清理之后再执行可解决问题