Airsim: Package Error in Linux

Created on 8 May 2018  路  3Comments  路  Source: microsoft/AirSim

os:ubuntu16.04
UE4:4.18
I meet an error when i package blocks.uproject,how can i solve it?guys.
[9/23] Compile Module.InputDevice.cpp
In file included from /home/jena/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/Blocks/Development/AirSim/Module.AirSim.gen.cpp:2:
In file included from /home/jena/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/Blocks/Inc/AirSim/AirBlueprintLib.gen.cpp:8:
../../../AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirBlueprintLib.h:140:58: error: member access into incomplete type 'UWorld'
APlayerController* controller = actor->GetWorld()->GetFirstPlayerController();
^
Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h:817:25: note: forward declaration of 'UWorld'
static bool Exec(class UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Out)
^
In file included from /home/jena/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/Blocks/Development/AirSim/Module.AirSim.cpp:2:
In file included from /home/jena/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirBlueprintLib.cpp:4:
../../../AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirBlueprintLib.h:140:58: error: member access into incomplete type 'UWorld'
APlayerController* controller = actor->GetWorld()->GetFirstPlayerController();
^
Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h:817:25: note: forward declaration of 'UWorld'
static bool Exec(class UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Out)
^
[10/23] Compile Module.DatabaseSupport.cpp
[11/23] Compile Module.Advertising.cpp

bug

Most helpful comment

just add this to your header file (AirBlueprintLib.h)
#include "Runtime/Engine/Classes/Engine/World.h"
source

All 3 comments

just add this to your header file (AirBlueprintLib.h)
#include "Runtime/Engine/Classes/Engine/World.h"
source

@kshitiz38 that worked for me, thank you!

@kshitiz38 That solved the issue for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r2d2Proton picture r2d2Proton  路  3Comments

Kim-BongSu picture Kim-BongSu  路  4Comments

ShukuiZhang picture ShukuiZhang  路  4Comments

zywOwO picture zywOwO  路  3Comments

HereIsPatrick picture HereIsPatrick  路  3Comments