x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Unresolved external symbol - Kinect Lirary

Hi guys, Im trying to make a plugin for Kinect 1.8, and I am currently trying to load the kinect library, but I ran into some issues that I cant resolve for 2 days now. I am getting this error and i have no clue what it means:

1>LINK : warning LNK4001: no object files specified; libraries used 1>LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup 1>C:\Users\nas\Documents\Unreal Projects\Kinect1\Plugins\Kinect2\Binaries\Win64\UE4Editor-Kinect2.dll : fatal error LNK1120: 1 unresolved externals

This is my build file:

 using System.IO;
 namespace UnrealBuildTool.Rules
 {
     public class Kinect2 : ModuleRules
     {
         public Kinect2(TargetInfo Target)
         {
             PublicIncludePaths.AddRange(
                 new string[] {
                     "Kinect2/Public",
                     "Kinect2/Classes"
                     
                     // ... add public include paths required here ...
                 }
                 );
 
             PrivateIncludePaths.AddRange(
                 new string[] {
                     "Kinect2/Private",
                     
                     // ... add other private include paths required here ...
                 }
                 );
 
             PublicDependencyModuleNames.AddRange(
                 new string[]
                 {
                     "Core", 
                     "CoreUObject", 
                     "Engine",
                     "Slate",
                     "InputDevice",
                     "InputCore",
                      "Kinect2"
                     
                     // ... add other public dependencies that you statically link with here ...
                 }
                 );
 
             PrivateDependencyModuleNames.AddRange(
                 new string[]
                 {
                     "Core",
                     "CoreUObject",
                     "Engine"
                     // ... add private dependencies that you statically link with here ...
                 }
                 );
 
             DynamicallyLoadedModuleNames.AddRange(
                 new string[]
                 {
                     "Kinect2"
                     // ... add any modules that your module loads dynamically here ...
                 }
                 );
             LoadLibrary(Target);
             
         }
         public bool LoadLibrary(TargetInfo Target)
         {
             Type = ModuleType.External;
             bool isLibrarySupported = false;
 
             string ModulePath = Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name));
             string LibraryPath = Path.Combine(ModulePath, "ThirdParty", "KinectLib");
            
             string ArchitecturePath = "";
 
             if (Target.Platform == UnrealTargetPlatform.Win64 &&
                 WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
             {
                 ArchitecturePath = "amd64";
 
                 isLibrarySupported = true;
             }
             else if (Target.Platform == UnrealTargetPlatform.Win32 &&
               WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
             {
                
                 ArchitecturePath = "x86";
 
                 isLibrarySupported = true;
             }
 
             if (isLibrarySupported==true)
             {
                 // Add the architecture spacific path to the library files
                 PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "lib", ArchitecturePath, "Kinect10.lib"));
                 // Add a more generic path to the include header files
                 PublicIncludePaths.Add(Path.Combine(LibraryPath, "inc"));
             }
             
             Definitions.Add(string.Format("WITH_KinectLib_BINDING={0}", isLibrarySupported ? 1 : 0));
             
             return isLibrarySupported;
 
         }
     }
 }

Im not quite sure what else to include, so if you require something else, I will put it down.

Product Version: Not Selected
Tags:
more ▼

asked Nov 05 '14 at 04:58 PM in C++ Programming

avatar image

Creedzy
26 3 6 9

(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