# Kinect Lib linking problems

**URL:** <https://forums.unrealengine.com/t/kinect-lib-linking-problems/319222>\
**Category:** C++\
**Tags:** linker, kinect, unreal-engine, linking, question, CPP\
**Created:** [May 20, 2015, 1:43pm UTC](https://forums.unrealengine.com/t/kinect-lib-linking-problems/319222 "2015-05-20T13:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaGiiK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaGiiK](https://forums.unrealengine.com/u/MaGiiK)\
**Post date:** [May 20, 2015, 1:43pm UTC](https://forums.unrealengine.com/t/kinect-lib-linking-problems/319222/1 "2015-05-20T13:43:57Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![MaGiiK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaGiiK](https://forums.unrealengine.com/u/MaGiiK)\
**Post date:** [May 20, 2015, 2:17pm UTC](https://forums.unrealengine.com/t/kinect-lib-linking-problems/319222/2 "2015-05-20T14:17:41Z")

</div>

Ok i have found why i can’t find the include!  
the include was put under thirdParty so:  
#include “ThirdParty\Windows\Kinect\Includes\Kinect.h”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3a0bc86d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3a0bc86d](https://forums.unrealengine.com/u/anonymous_user_3a0bc86d)\
**Post date:** [January 27, 2016, 11:30am UTC](https://forums.unrealengine.com/t/kinect-lib-linking-problems/319222/3 "2016-01-27T11:30:58Z")

</div>

I have a same question, could you help me??QAQ

I want to make Kinect 2.0 SDK in unreal engine 4.10.1,and I create a third party library plugin, but I don’t know Kinect 2 SDK should stay where…
