[Solved]DllNotFoundException when using unity plugin 1.3

NatNet, VRPN, TrackD, and Plugins
Post Reply
chobitsfan
Posts: 5
Joined: Wed Feb 20, 2019 10:56 pm

[Solved]DllNotFoundException when using unity plugin 1.3

Post by chobitsfan »

windows 10 home 64bit, 20h2
unity 2019.4.19f1
motive 2.2

1. create a new unity project
2. import unity plugin 1.3
3. open optitrack example scene and play
4. got DllNotFoundException : NatNetLib

But everything is working well when using unity plugin 1.2
Last edited by chobitsfan on Wed Mar 17, 2021 6:32 pm, edited 1 time in total.
plushTrack
Posts: 3
Joined: Thu Jan 14, 2021 4:30 am

Re: DllNotFoundException when using unity plugin 1.3

Post by plushTrack »

Not so much luck for me either.

1.2.0 works fine for Unity 2020.2.1 f1 LTS.

Not for 1.3.0. Manually loading dll from Natnet 3.1 did not resolve the issue either.

-windows 10
-motiove 2.2.0
jnoffke
Posts: 2
Joined: Wed Jul 26, 2017 6:12 am

Re: DllNotFoundException when using unity plugin 1.3

Post by jnoffke »

DLL not found exception in unity usually means you're missing a visual studio redistributable. May try installing 2017 and 2019 x64 visual studio redistributables and trying again.
plushTrack
Posts: 3
Joined: Thu Jan 14, 2021 4:30 am

Re: DllNotFoundException when using unity plugin 1.3

Post by plushTrack »

jnoffke wrote: Wed Mar 10, 2021 8:28 pm DLL not found exception in unity usually means you're missing a visual studio redistributable. May try installing 2017 and 2019 x64 visual studio redistributables and trying again.
Thanks to your suggestion, I resolved the dll exception issue

This was indeed linked to incomplete update on 2019 distributables for C++ language.

I had to run the visual studio installer and install the followings in "C++ development tab"

->MSVS v142 VS 2019 build tools
->v142 build tools C++/CLI
->v142 build tools v++ module
->latest v142 build tools for C++ATL(x86 and x64)

..In short, everything related to latest v142 has been installed from c++ tab,

with addition of latest windows 10 SDK, and anything that might be related to this remotely.

Now I can run the 1.3.0 plugin without dll not found exception
chobitsfan
Posts: 5
Joined: Wed Feb 20, 2019 10:56 pm

Re: DllNotFoundException when using unity plugin 1.3

Post by chobitsfan »

Hi jnoffke and plushTrack. Thank you very much for helping. After update necessary VS components, it works now.
rizarefaldi
Posts: 2
Joined: Sat Oct 02, 2021 7:43 pm

Re: DllNotFoundException when using unity plugin 1.3

Post by rizarefaldi »

chobitsfan wrote: Wed Mar 17, 2021 1:19 am Hi jnoffke and plushTrack. Thank you very much for helping. After update necessary VS components, it works now https://itkoding.com/cara-membuat-halam ... soft-word/
so only update necessary VS components, right?
AlexEbec
Posts: 1
Joined: Thu Jul 29, 2021 11:48 am

Re: [Solved]DllNotFoundException when using unity plugin 1.3

Post by AlexEbec »

Yes, the solution provided above is a good one.
jnoffke
Posts: 2
Joined: Wed Jul 26, 2017 6:12 am

Re: [Solved]DllNotFoundException when using unity plugin 1.3

Post by jnoffke »

You shouldn't have to install a bunch of stuff through visual studio, although I guess that would work. If you need to run on a machine that doesn't have visual studio involved, just google "visual studio 2019 redistributable" and download and install the x64 redistributable from Microsoft's website.
Post Reply