Packaging issue on ubuntu 16.04
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
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 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 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
@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));
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 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
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.