nama-gatsuo / AzureKinectForUE

Exposes Azure Kinect Support for integration into Unreal Engine Applications.
90 stars 16 forks source link

Plugin 'AzureKinect' failed to load because module 'AzureKinect' could not be loaded. #7

Open jessekirbs opened 2 years ago

jessekirbs commented 2 years ago

Hello,

After building and running, I get the following error:

1

I've made sure to include all .dll and .lib files from Azure Kinect SDK and Body Tracking SDK in the .\Plugins\AzureKinectForUE-master\Binaries\Win64 folder. I've tried rebuilding, cleaning, and running again. I've tried modifying the AzureKinect.Build.cs file as in this issue . The log says it fails to preload k4abt.dll, k4a.dll, and UE4Editor-AzureKinect.dll even though it is looking in the correct path (.\Plugins\AzureKinectForUE-master\Binaries\Win64) and the files are present.

Log file: Log.log

Any help would be greatly appreciated. Thank you!

Windows 10 UE 4.27 Visual Studio 2019

YongsunLee commented 2 years ago

Hello, @jessekirbs

Unfortunately i wasn't the creator of this plugin.

I have a master's degree, but I'm a junior developer with no working background, so I don't have the great ability.

Still, you'll receive your email and i know how hard it would have been if you had these problems, so I write a comment.

Once I haven't been working on this plugin project recently, I created a new one(UE4.27.2) and the plugin used the plugin file generated by cloning the master branch.(Use GithubDesktop Application)

At this time, I had set a lot of content in the previous project, so I confirmed that it was built with VS2019 without any special problems and the project was opened. The UE4 editor worked great.

Your problem I think is that the project itself doesn't open.

At this time, it is thought that the part that should be checked is the system environment variable.

Check the AzureKinect.Build.cs file for this plugin. You can see that the system environment variables are "AZUREKINECT_SDK" and "AZUREKINECT_BODY_SDK".

AzureKinect.Build.cs file System Environment Value image

The same value has been added to my system environment variables. (I attach the picture My System Environmment Value)

My System Environment Value Image image

If this part isn't a problem, it's likely to be difficult to answer because there's really no way to same error it.

jessekirbs commented 2 years ago

@YongsunLee Thank you very much for your assistance. My environment variables were set properly but I was still having issues. I tried creating a new project and for some reason it's working now. The only thing I can think of is that the other projects I was trying to build were not on the C drive, and they were within folders that contains spaces (i.e. D:\Personal\Interactive Projects). I think the folder that contained spaces may have messed something up. It seems to be working now though. Thanks again for posting this info!

matewfeel commented 2 years ago

I'm getting exactly the same error. managed to build correctly the plugin using vs2019 but when i try opening the project it tells me the same thing.

my project is on my main C drive and i have no spaces in folders. environment variables are correctly setup.

HALP ! see log attached, it's missing dills imports i'm running 4.27.2

matewfeel commented 2 years ago

okay, i managed to make some progress i noticed from my log it was missing some dlls: k4a.dll & k4abt.dll

so all i did was going to C:/program files/ Azure SDK & Azure Body Tracking SDK , copy the dlls files from there and paste into: C:\Your UE Project\Plugins\AzureKinectForUE-master\Binaries\Win64

NOW i am able to open the project and i can see the azure plugin being active.

BUT i cannot see any u.asset file from the content folder of the plugin.

how can i fix this ?

matewfeel commented 2 years ago

Next update, i notice my uassets were only 1kb in size, all i did was downloading the zip weird.... i double checked on github and saw actually their original size was bigger than that. i downloaded each uasset individually from github again and replaced my ones. i can see all the uassets inside my project now and if i open kinect device i can see the serial/device number under 'device selection of my kinect;

BUT when i press start or load nothing happens and the textures remains black.

i tried opening touch designer to doublecheck i had video coming in from my kinect and it works there.... what am doign wrong !?

990408 commented 2 years ago

h

Next update, i notice my uassets were only 1kb in size, all i did was downloading the zip weird.... i double checked on github and saw actually their original size was bigger than that. i downloaded each uasset individually from github again and replaced my ones. i can see all the uassets inside my project now and if i open kinect device i can see the serial/device number under 'device selection of my kinect;

BUT when i press start or load nothing happens and the textures remains black.

i tried opening touch designer to doublecheck i had video coming in from my kinect and it works there.... what am doign wrong !? Hello,l met the same problem as you in the process of running this program(". i can see all the uassets inside my project now and if i open kinect device i can see the serial/device number under 'device selection of my kinect;"),have you solved this problem?And can you give me some suggestions?Looking forward to your help.

990408 commented 2 years ago

h

Next update, i notice my uassets were only 1kb in size, all i did was downloading the zip weird.... i double checked on github and saw actually their original size was bigger than that. i downloaded each uasset individually from github again and replaced my ones. i can see all the uassets inside my project now and if i open kinect device i can see the serial/device number under 'device selection of my kinect;

BUT when i press start or load nothing happens and the textures remains black.

i tried opening touch designer to doublecheck i had video coming in from my kinect and it works there.... what am doign wrong !? Hello,l met the same problem as you in the process of running this program(". i can see all the uassets inside my project now and if i open kinect device i can see the serial/device number under 'device selection of my kinect;"),have you solved this problem?And can you give me some suggestions?Looking forward to your help.

Lucky-patt commented 1 year ago

Hey @matewfeel. I'm experiencing the same error as you : I manage to get the ID device of the Kinect but when I press start, my textures remains black and I get a log error : "AzureKinectDeviceLog: Error: Cant't open: Failed to open device!".

Did you manage to solve the problem ?