0

I have a project that is using old version of EmguCV. In windows,it requires Visual C++ Redistributable for proper functioning.The Library throws some exception when its missing.I'm porting the same application for MacOSX using Mono. I was wondering how this issue can be addressed in OSX?

Reference Question

EmguCV cvextern System.DllNotFoundException

Please advice.

techno
  • 6,100
  • 16
  • 86
  • 192
  • You can compile the native macOS dylib from source (it is GPL unless you have a commercial license, then they supply the prebuilt library) – SushiHangover Sep 09 '17 at 17:33
  • @SushiHangover Thanks for your reply.I have already referenced Emgu CV DLL in my c# project that uses GTK for UI.This Emgu depends on several other opencv and other DLLs which I copy to the bin folder(in windows).In addition to this I need visual studio 2015 dependency installed as mentioned in the question.I don't understand how I can use the .dylib to solve this problem.Please advice. – techno Sep 09 '17 at 17:39
  • The VC 2015 runtime redistributable dependencies are Windows only **native** dlls, the EmguCV is a CIL wrapper for native libraries and those libraries are platform dependent and must be compiled for each platform. (those *opencv and other native DLLs* would also need to an macOS-based, not the Windows versions) – SushiHangover Sep 09 '17 at 17:49
  • You can get `opencv` for macOS via `homebrew`, not sure about the version you need since you said you are using an old version of EmguCV, you would need to see if there is a brew recipe for the version that you need. I went once through this before, but the client ended up buying a commercial license since they decided to distribute the app and were not going to open source their app. – SushiHangover Sep 09 '17 at 18:13
  • I just got lucky and got a precompiled version of EmguCv for OSX.It has all the necessary .dylib files too.The thing is I do not want to include system.drawing package as it can significantly delay the start up of the application (Takes long time to build the font cache).It seems Emgu.Cv uses system.drawing internally and cannot function without a system.drawing reference.Too Bad :( .Am I right ? – techno Sep 10 '17 at 06:01
  • @SushiHangover I just got lucky and got a precompiled version of EmguCv for OSX.It has all the necessary .dylib files too.The thing is I do not want to include system.drawing package as it can significantly delay the start up of the application (Takes long time to build the font cache).It seems Emgu.Cv uses system.drawing internally and cannot function without a system.drawing reference.Too Bad :( .Am I right ? – techno Sep 10 '17 at 06:02

0 Answers0