Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Error linking third party library

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"));
             // 32-bit Windows
             case UnrealTargetPlatform.Win32:
                 PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "x86", "ANL.lib"));
             // Mac
             case UnrealTargetPlatform.Mac:
                 PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "Universal", "libANL.a"));
             // Linux
             case UnrealTargetPlatform.Linux:
                 PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library", "build", "ANL", "x64", "libANL.a"));
         // 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"
 class VOXELGENERATION_API AAVoxelTerrainActor : public AActor
     // Sets default values for this actor's properties
     // Called when the game starts or when spawned
     virtual void BeginPlay() override;
     // Called every frame
     virtual void Tick(float DeltaTime) override;

Product Version: UE 4.15
more ▼

asked Mar 01 '17 at 11:40 PM in C++ Programming

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question