Skip to content

On Hololens: Unable to load DLL 'OpenCvSharpExtern' OR SpringManager.cs(72,42): error CS1061: 'Type' does not contain a definition for 'GetField #4

@juansuerogit

Description

@juansuerogit

Yukihiko,

We are able to play your sample with our own video by pressing play inside Unity 2018.4.7f1

But on the Microsoft Hololens we get
DllNotFoundException: Unable to load DLL 'OpenCvSharpExtern': The specified module could not be found.

To get your project into Hololens we click on "use WebCam" in your project. And then we build to run on the hololens which is x86 and windows universal platform as seen in the screenshot below.

We are not sure what to do. We tried copying your OpenCvSharpExtern dll to various places in the folders that were built before pushing to hololens but still doesnt work.

When we switch the scripting backends in the player settings from IL2CPP to .NET then we get a build error inside Unity when we try to build for Windows Universal

Assets\unity-chan!\Unity-chan! Model\Scripts\SpringManager.cs(72,42): error CS1061: 'Type' does not contain a definition for 'GetField' and no accessible extension method 'GetField' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)

image

image

image

here are the build settings inside Unity in the screenshot below.
image

then when export to Visual Studio
image

here is the video from the hololens and the error not working
https://drive.google.com/file/d/1ru2gEQUAV6cQg9XGtjbf5CoKV6tpE_Gf/view

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions