So this might be a dumb question but I can’t find an answer anywhere.
I am working on a plugin for using Kinect in an unreal project but I can’t seem to find how to include the library files.
Normally I can get the lib files by going through properties of the project file in Visual studio but in the unreal project this option is not present.
I understand this is because unreal uses its own build tool. So how do I tell it to include the libraries? The headers seem to work like normal in visual studio but not the lib files.
I am using engine version 4.14 kinect SDK 2.0 and Visual studio 2015 community.
You have to use Build.cs C# file to tell UBT to include the additional library to be loaded, also add include paths to its header files.
You can see this in several xxx.Build.cs files in engine source.
Ok so I got it to build by setting up the build.cs and file structure the way you show but it doesn’t seem to do anything. If I try to include the Kinect header it says the file can’t be opened. I can get it to find the header if i put the path in the projects properties, include directory or place it directly in the project folders but it just throws a ton of errors and wont build.
Nothing seems to be consistent, all the engine plugins seem to use different methods none of which I can get to work.
As far as I can tell it is not actually getting the library file and that is causing the errors when I include the header.
How do you actually tell the UBT what to include?