Packaging plugin fails
I'm currently trying to package a C++ plugin I wrote. The plugins compiles fine in DebugGame_Editor, Development, and Shipping (inside VS2017) but when I click on the Package button, i got this error:
Why is there a problem? If you have any pointers, please share them.
Ok it seems to be a little more clear now. I re-read the documentation about IWYU and I finally understand what to do.
For anyone having the same error, begin every header file with the include of CoreMinimal.h and then after that remove all the Engine.h, Core.h (and other include that trigger the error). You can change them directly by the special header you want to include. If you need to access GEngine or other globals inside Engine.h include Engine/Engine.h to make the differences between the two.
EDIT: For most header to be included, it is not just Filename.h, it is more like SubModule/Filename.h. These can be found easily by search this page. At the bottom of the page for a particular class, you can find the module and the header to use.
For example to include AActor.h it is required to include "GameFramework/Actor.h" as shown in the picture below.
I hope this will help.
Follow this question
Once you sign in you will be able to subscribe for any updates here