Hi guys !
I’m Trying to link the kinectv2 library ad i started with copy the library in the third part software floder of the engine.
So now i have menaged to have this floder structure:
C:\Program Files\Epic Games\4.7\Engine\Source\ThirdParty\Windows\Kinect
Includes
-Kinect.h
-Kinect.Face.h
-Kinect.VisualGestureBuilder.h
_… others Includes…
Libraries
-x86
–Kinect20.face.lib
–Kinect20.fusion.lib
–Kinect20.lib
–Kinect20.VisualGestureBuilder.lib
-x64
–Kinect20.face.lib
–Kinect20.fusion.lib
–Kinect20.lib
–Kinect20.VisualGestureBuilder.lib
KinectV2.build.cs
And here the KinectV2.build.cs:
using UnrealBuildTool;
using System.IO;
public class KinectV2 : ModuleRules
{
	readonly string libName="Kinect20.lib";
	public KinectV2(TargetInfo Target)
	{
         
		    Type = ModuleType.External;
        if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
        {
            string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";
            string KinectPath = UEBuildConfiguration.UEThirdPartySourceDirectory + "Windows/Kinect/";
            PublicIncludePaths.Add(KinectPath);
            string LibPath = KinectPath + "/Libraries/" + PlatformString + "/";
            PublicIncludePaths.Add(LibPath);
            PublicSystemIncludePaths.Add(KinectPath + "/includes/Kinect.h");
            PublicAdditionalLibraries.Add(libName);
            
            Definitions.Add("WITH_KINECT_V2=1");
        }
    }
}
Also in the project builder i have put :  OutExtraModuleNames.AddRange(new string[] { "FPSTest", "KinectV2" });
In theory should work and the compiler don’t give me errors buthe cant find the reference if i use #include Someone can tell me where i  wrong??
PS: i put the follow line in the VC++:
C:\Program Files\Epic Games\4.7\Engine\Source\ThirdParty\Windows\Kinect;$(IncludePath)
C:\Program Files\Epic Games\4.7\Engine\Source\ThirdParty\Windows\Kinect\Libraries\x64;C:\Program Files\Epic Games\4.7\Engine\Source\ThirdParty\Windows\Kinect\Libraries\x86;$(LibraryPath)