The type initializer for 'Emgu.CV.CvInvoke' threw an exception

前端 未结 11 2314
轮回少年
轮回少年 2020-11-29 10:17

I\'m getting this error

The type initializer for \'Emgu.CV.CvInvoke\' threw an exception.

when I try to use Emgu CV. I\'ve tried

11条回答
  •  星月不相逢
    2020-11-29 10:56

    you could using LD_LIBRARY_PATH to solve it:

    1. open the warning and check what lib your program lack

    2. locate the path

      $ locate # to find the library path

    3. In your IDE, set the environment variable LD_LIBRARY_PATH to the lib path,(I use monodevelop, the path is Run-->Run With-->Custom Parameters...)

    it work quit good now :)

提交回复
热议问题