|
参考: 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中的代码
|