参考:
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
运行成功!
问题
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
中的代码
发表评论