当前位置: 代码网 > it编程>编程语言>Javascript > ubuntu20.04安装UE4+Airsim环境

ubuntu20.04安装UE4+Airsim环境

2024年08月01日 Javascript 我要评论
版本UE4.27+Airsim1.81

参考:
1、airsim官方文档
2、archlinux社区

安装ue4环境

官方提示ue4版本需要>=4.27,这里就按推荐安装4.27

git clone -b 4.27 git@github.com:epicgames/unrealengine.git
cd unrealengine
./setup.sh
./generateprojectfiles.sh
make

建议在make前更改部分源码

//{ue4 workplace}/engine/source/developer/desktopplatform/private/desktopplatformbase.cpp
//before
arguments += " -progress -noenginechanges -nohotreloadfromide"

//after
arguments += " -progress"

注意请按照上述方法直接下载源码,使用release安装之后会有部分文件夹显示没有读取权限,需要重新更改文件夹权限,增加工作量。


安装airsim

git clone https://github.com/microsoft/airsim.git
cd airsim
./setup.sh
./build.sh #该步骤如果安装失败请使用sudo
# ./build.sh --debug 和上述步骤二选一

运行airsim

./engine/binaries/linux/ue4editor #在ue4文件夹中运行

在更多中选择 {airsim floder path}/airsim/unreal/environments/blocks.uproject

alt
运行成功!

问题

1、error: couldn’t touch header directories

文件夹权限问题,检查自己下载的是源码还是releases,考虑重新下载或者修改文件夹权限后编译

2、engine modules are out of date, and cannot be compiled while the engine is running. please build through your ide

详见安装ue4环境一节内修改{ue4 workplace}/engine/source/developer/desktopplatform/private/desktopplatformbase.cpp中的代码

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com