AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Packaging issue on ubuntu 16.04

Open gkbell46 opened this issue 8 years ago • 7 comments

Hi I am new to Unreal engine and Airsim. I have followed the link for packaging. I get the error

"UATHelper: Package (Linux): UnrealBuildTool: error: defination of macro 'PLATFORM_EXCEPTIONS_DISABLED' differs between the precompiled header ('1') and the command line ('0')"

I am using Ubuntu 16.04 Unreal engine 4.17.2

Kindly requesting someone to help. TIA

gkbell46 avatar Feb 08 '18 13:02 gkbell46

Generally packaging from Linux is not recommanded. You probably want to use cross platform toolchain to make Linux build from within Visual Studio: https://docs.unrealengine.com/latest/INT/Platforms/Linux/GettingStarted/

For above error, you might want to post in Unreal forums: http://answers.unrealengine.com/

sytelus avatar Feb 09 '18 06:02 sytelus

@sytelus Thanks for your quick reply. Packaging works fine for a demo application created without AirSim plugin. I see this error only packaging along with AirSim plugin. I see similar error on Windows too while cross compiling. Just curious to know if any one has actually built package for Linux environment either native or through cross compile? Sorry for asking such silly questions.

gkbell46 avatar Feb 10 '18 15:02 gkbell46

@gkbell46 I had the same problem in packaging for Linux environment... A quick workaround is to disable exceptions in Blocks.Build.cs by setting bEnableExceptions = false, but remember this is not a fix just a workaround

ktzsh avatar May 31 '18 08:05 ktzsh

@kshitiz38 That workaround didn't work for me. Disabling exceptions in Blocks.Build.cs didn't solve the above error. I also tried disabling exceptions in AirSim.Build.cs. It generated many errors similar to:

In file included from /home/chris/Documents/Unreal Projects/Blocks 4.20/Plugins/AirSim/Source/AirLib/include/common/Settings.hpp:19: /home/chris/Documents/Unreal Projects/Blocks 4.20/Plugins/AirSim/Source/AirLib/include/common/common_utils/FileSystem.hpp:173:13: error: cannot use 'throw' with exceptions disabled throw std::ios_base::failure(std::strerror(errno));

TritonSailor avatar Jun 10 '18 20:06 TritonSailor

This is definitely an AirSim plugin issue. I've been able to package projects on linux without AirSim plugin.

I was able to get around the original issue above by building without PCH. However, now I'm faced with the following error:

In file included from /home/chris/Documents/Unreal Projects/Blocks 4.20/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/Blocks/Development/AirSim/Module.AirSim.cpp:2: In file included from /home/chris/Documents/Unreal Projects/Blocks 4.20/Plugins/AirSim/Source/AirBlueprintLib.cpp:4: /home/chris/Documents/Unreal Projects/Blocks 4.20/Plugins/AirSim/Source/AirBlueprintLib.h:142:58: error: member access into incomplete type 'UWorld' APlayerController* controller = actor->GetWorld()->GetFirstPlayerCont... ^ /home/chris/mkdev/UnrealEngine/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h:867:25: note: forward declaration of 'UWorld' static bool Exec(class UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Out)

TritonSailor avatar Jun 10 '18 22:06 TritonSailor

@TritonSailor You should definitely not disable exceptions for AirSim build, Only disable it in Blocks build..If you are still getting the same error do a clean build...make any of your header file dirty and try building again. For your second error refer #1075 In case you still cant get it to work you can checkout my fork..It works perfectly on UE 4.18, Linux

ktzsh avatar Jun 11 '18 03:06 ktzsh

I believe this issue is solved in newer versions of the engine (4.18+). If you are still encountering the problem, please re-open the issue.

msb336 avatar Oct 03 '19 15:10 msb336