I’m creating a c++ runtime based plugin in UE 4.17, but when packaging I stumble upon the following error.
Tried searching on the fora but didn’t really find anything. I suppose it is because of bad includes, my code is as followed.
VoxelActor.cpp
#include "VoxelActor.h"
#include "SimplexNoiseLibrary.h"
VoxelActor.h
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h"
#include "Runtime/Engine/Classes/Components/HierarchicalInstancedStaticMeshComponent.h"
#include "ProceduralMeshComponent.h"
#include "VoxelActor.generated.h"
VoxelCharacter.cpp
#include "VoxelCharacter.h"
#include "VoxelActor.h"
#include "Camera/CameraComponent.h"
#include "Components/CapsuleComponent.h"
#include "Kismet/GameplayStatics.h"
#include "GameFramework/CharacterMovementComponent.h"
VoxelCharacter.h
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "VoxelCharacter.generated.h"
VoxelWorld.Build.cs
public VoxelWorld(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[] {
"VoxelWorld/Public"
// ... add public include paths required here ...});
PrivateIncludePaths.AddRange(
new string[] {
"VoxelWorld/Private",
// ... add other private include paths required here ...});
PublicDependencyModuleNames.AddRange(
new string[]
{
"Engine","Core",
// ... add other public dependencies that you statically link with here ...});
PrivateDependencyModuleNames.AddRange(
new string[]
{
"Engine", "CoreUObject","InputCore","InputDevice","Slate","SlateCore",
"ProceduralMeshComponent",
// ... add private dependencies that you statically link with here ... });
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...});
}
VoxelWorld.uplugin
"CanContainContent": true,
"IsBetaVersion": false,
"Installed": false,
"Modules": [
{
"Name": "VoxelWorld",
"Type": "Runtime",
"LoadingPhase": "Default",
"WhitelistPlatforms" :
[
"Win32",
"Win64"
]
}
],
"Plugins": [
{
"Name": "ProceduralMeshComponent",
"Enabled": true
}
]
I would greatly appreciate any kind of help or direction as I am at a loss for any decent ideas