參考:
1、Airsim官方文檔
2、Archlinux社區(qū)
安裝UE4環(huán)境
官方提示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"
注意請(qǐng)按照上述方法直接下載源碼,使用release安裝之后會(huì)有部分文件夾顯示沒(méi)有讀取權(quán)限,需要重新更改文件夾權(quán)限,增加工作量。
安裝AIRSIM
git clone https://github.com/Microsoft/AirSim.git
cd AirSim
./setup.sh
./build.sh #該步驟如果安裝失敗請(qǐng)使用sudo
# ./build.sh --debug 和上述步驟二選一
運(yùn)行Airsim
./Engine/Binaries/Linux/UE4Editor #在UE4文件夾中運(yùn)行
在更多中選擇 {Airsim floder path}/AirSim/Unreal/Environments/Blocks.uproject
運(yùn)行成功!
問(wèn)題
1、ERROR: Couldn’t touch header directories
文件夾權(quán)限問(wèn)題,檢查自己下載的是源碼還是releases,考慮重新下載或者修改文件夾權(quán)限后編譯
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-790672.html
2、Engine modules are out of date, and cannot be compiled while the engine is running. Please build through your IDE
詳見(jiàn)安裝UE4環(huán)境一節(jié)內(nèi)修改{UE4 workplace}/Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp
中的代碼文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-790672.html
到了這里,關(guān)于ubuntu20.04安裝UE4+Airsim環(huán)境的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!