Itseez/opencv — pull request #604 by azeno (2013-03-01 17:15:19+00:00)
Title: Mono / .NET bindings

hi,
using IKVM (http://www.ikvm.net/) i've created bindings for Mono / .NET using the existing java bindings. in order to get them built, IKVM needs to be in the system's PATH environment variable.

i modified the java for desktop bindings a little so they do the System.loadLibrary call on their own. doing it the same way as in the java examples (letting the user call it) doesn't work in .NET due to different class loading behaviour.

i'm fairly new to CMake, so any hints/help in that direction are appreciated - for example i've no clue what'd be the proper way to copy native dependencies (ikvm-native-win32) based on the current target platform (x86/x64).
i'd like to see an output folder like this:
mono/opencv-mono.dll -- the mono bindings
mono/IKVM.*.dll -- managed assemblies needed by opencv-mono.dll
mono/x86/opencv_java249.dll -- native dependency needed by opencv-mono.dll
mono/x86/ikvm-native-win32-x86.dll -- native dependency needed by IKVM.Runtime.JNI.dll
mono/x64/...

i've not yet written any tests yet. simply tried some basic examples which worked just fine. wanted to sort out above mentioned build issues first.

thanks,
elias