Question

I have similiar problem as was presented here, but with opencv_imgproc231.dll (opencv_core231.dll is loaded correctly in my case).

I installed OpenCV 2.3.1 and set environment variable PATH to foldres in "vc9\bin" folder. I added all OpenCvSharp dlls to references. When I run my c# program, it loads opencv_core231.dll correctly, but opencv_imgproc231.dll cant find (is in tha same directory as all opencv dlls). I tried copy opencv dlls to folder where is executable file, but it showed same error.

I did all what he did - C++ red. pack. 2008, 2010SP1, set PATHs, copy openCV dlls to folder, where is executable file - but nothing works, still DllNotFoundException for opencv_imgproc231.dll.

I have VS2008 and Windows 7 32bit. My program contains only one row: "IplImage image = new IplImage(128, 128, BitDepth.U8, 1);".

Thanks for any advice.

Pavel.

Was it helpful?

Solution 2

Ok, I solved it. There is problem in precompiled openCV DLL. So if you have similar problem, recompile openCV and it will work. I dont why, but precompiled opencv_imgproc230.dll has 1579008 bytes and my recompiled opencv_imgproc230.dll has 1568768 bytes, but it works.

OTHER TIPS

I found this issue at google code http://code.google.com/p/opencvsharp/issues/detail?id=97

add tbb.dll (from opencv/build/common/tbb) to PATH or same folder of the executable works for me :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top