I am new to c++, and unreal engine in general. I have been following or trying to at least follow the tutorial posted here. I followed the setup that was posted in the previous tutorial, and now i keep getting a error.
Cannot open include file: ‘PolyVox/PagedVolume.h’: No such file or director
Further along the tutorial is a update guide to version 4.12 which I followed.
The below is the build.cs file
using System.IO; // Make sure you are using System.IO! Its not in here by default!
using UnrealBuildTool;
public class VoxelGeneration : ModuleRules
{
// The path to our Third Party code assets; e.g. ProjectFolder/ThirdParty/
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../ThirdParty/")); }
}
public VoxelGeneration(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent" });
PrivateDependencyModuleNames.AddRange(new string[] { });
////////////////////// Custom Voxel Terrain Stuff Starts Here //////////////////////////////////////
// You will need to compile and add additional libraries if you want to use this on platforms not listed below!
switch (Target.Platform)
{
// 64-bit Windows
case UnrealTargetPlatform.Win64:
PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "x64", "ANL.lib"));
break;
// 32-bit Windows
case UnrealTargetPlatform.Win32:
PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "x86", "ANL.lib"));
break;
// Mac
case UnrealTargetPlatform.Mac:
PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "Universal", "libANL.a"));
break;
// Linux
case UnrealTargetPlatform.Linux:
PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "x64", "libANL.a"));
break;
default:
break;
}
// Include the headers for PolyVox and ANL so we can access them later.
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "polyvox", "include"));
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library"));
////////////////////// End Voxel Terrain Stuff //////////////////////////////////////////////////////
}
}
’
The below is the actual .cpp file where i am trying to call the files
’
#pragma once
// Polyvox Includes
#include "PolyVox/PagedVolume.h"
#include "PolyVox/MaterialDensityPair.h"
#include "GameFramework/Actor.h"
#include "AVoxelTerrainActor.generated.h"
UCLASS()
class VOXELGENERATION_API AAVoxelTerrainActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AAVoxelTerrainActor();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
};