microsoft / opencv

Open Source Computer Vision Library
opencv.org
Apache License 2.0
144 stars 92 forks source link

WinRT (win 10) component FileNotFoundException #72

Open limefrogyank opened 8 years ago

limefrogyank commented 8 years ago

I've gotten the source to build for both x86 and ARM successfully. I've created my own C++ UWP app and managed to load all the libraries properly just like in your sample (Raspberry Pi ARM sample). It runs fine on my phone.

However, as soon as I try to do the same thing using a WinRT Component instead of directly into a C++ UWP app, I get exceptions. Specifically, in managed code, I get System.IO.FileNotFoundException. There's something extra that I probably need to do to get this working in a component, but I can't figure it out for the life of me.

Steps so far:

  1. Added dlls (both debug & release) to component project and set as 'Content'.
  2. Added include directories in the C/C++-->General menu.
  3. Added correct directory to "Additional Library Directories" under Linker-->General
  4. Added all the lib files I'm using to "Additional Dependencies" under Linker-->Input

Of course, I've referenced my component in the c# project. But as soon as I try to call the main constructor for my class in the component within my C# project, it throws that FileNotFoundException.

What's missing? Thanks! Hopefully, this project is still being supported....