Hello, i know this question is similar to many other on the same subject but I couldn’t find a solution working for me.
My problem is simple, I want to use an external library (that I copied in my project), but when I try to include files from it I have a VS (visual studio) error even to it work fine when I compile with the editor.
Of course I included the path to my files in my Build.cs and I even check if they exist:
//ThirdPartyPath have the source path of external Lib in my project
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "polyvox", "include"));
string[] path = Directory.GetFiles(Path.Combine(ThirdPartyPath, "polyvox", "include"));
foreach (string st in path)
Console.WriteLine("HEY this is your files : " + st);
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "accidental-noise-library"));
I saw on different topic that I needed to add in my dependency to make visual compile and find them, but I can’t make it work, and VS cant compile on it :
// I tested VoxelLibrayrie ; PolyVox ; polyvox but none of them work
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "VoxelLibrayrie" });
I’m sure the solution is simple and I’m lacking basic knowledge, hope you can help me.
The files I want to use are in the following folder :
//ProjectName\VoxelLibrayrie\polyvox\include\PolyVox
And of course when I tri to include I do : #include “PolyVox/*files*”
Edit * :
forgot to say, of course it work if i give full path in my VS :
#include "../../VoxelLibrayrie/polyvox/include/PolyVox/PagedVolume.h"