AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Block environment : ImageWrapper.h file not found

Open jeremyfix opened this issue 9 years ago • 6 comments

Hi, when loading the Block UE environment you provide, UEditor is compiling it and at some raises an issue :

In file included from /opt/GIT/AirSim/Unreal/Environments/Blocks 4.18/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/AirSim/Module.AirSim.cpp:14: /opt/GIT/AirSim/Unreal/Environments/Blocks 4.18/Plugins/AirSim/Source/AirSimGameMode.cpp:3:10: fatal error: 'ImageWrapper.h' file not found #include "ImageWrapper.h"

I tried to "find . -name ImageWrapper.h" but nothing is returned neither in AirSim nor in UnrealEngine. What is this missing file coming from ?

jeremyfix avatar Oct 27 '17 09:10 jeremyfix

A follow up of my question. I'm using UnrealEngine 4.18 ; I found that the header where the IImageWrapperModule is defined is actually UnrealEngine/Engine/Source/Runtime/ImageWrapper/Public/IImageWrapperModule.h . There is also a IImageWrapper.h header.

I might give a try changing the include. Do you agree on this change ?

jeremyfix avatar Oct 27 '17 18:10 jeremyfix

I meet the same question as you. How about you now?

DrifterFun avatar Oct 28 '17 06:10 DrifterFun

I actually succeeded this morning to compile the plugin by changing the hearder

In AirSim/Unreal/Plugins/AirSim/Source/AirSimGameNode.cpp , change

#include "ImageWrapper.h"

by

#include "IImageWrapperModule.h"

Then adding the plugin to a new project, it compiled and I was able to spawn a drone.

jeremyfix avatar Oct 28 '17 07:10 jeremyfix

I created a pull request #570

jeremyfix avatar Oct 28 '17 07:10 jeremyfix

Yeah I tried. your can do it actually!

DrifterFun avatar Oct 28 '17 07:10 DrifterFun

Thanks for figuring this out. Your PR is now merged!

sytelus avatar Nov 02 '17 01:11 sytelus