[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 » Wed Feb 24, 2021 10:31 pm

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 » Tue Mar 09, 2021 10:26 pm

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: 1
Joined: Wed Jul 26, 2017 6:12 am

Re: DllNotFoundException when using unity plugin 1.3

Post by jnoffke » 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.

plushTrack
Posts: 3
Joined: Thu Jan 14, 2021 4:30 am

Re: DllNotFoundException when using unity plugin 1.3

Post by plushTrack » Fri Mar 12, 2021 12:51 am

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 » 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.

Post Reply