Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last dll build with vs2008 #22

Closed
mrgloom opened this issue May 6, 2014 · 3 comments
Closed

last dll build with vs2008 #22

mrgloom opened this issue May 6, 2014 · 3 comments
Labels

Comments

@mrgloom
Copy link

mrgloom commented May 6, 2014

seems last dll build don't work with vs2008.

Only solution is to compile project myself or I can use some older prebuild dlls?

@shimat
Copy link
Owner

shimat commented May 7, 2014

The latest DLL files work for me.

I tested using Visual C# 2008 Express. I downloaded v2.4.8.20140502 DLL files and added references to them. OpenCvSharp and OpenCvSharp.CPlusPlus worked successfully.
My testing solution is uploaded in the following URL.
https://www.dropbox.com/s/1d0yvt5ixvbmpj3/OpenCvSharpTest.zip

@shimat shimat added the other label May 7, 2014
@mrgloom
Copy link
Author

mrgloom commented May 8, 2014

Thanks for reply, I tryed your project and it give me error on first line

IplImage img = new IplImage("lena.png");

An unhandled exception of type 'System.TypeInitializationException' occurred in OpenCvSharp.dll
Additional information: Инициализатор типа "OpenCvSharp.NativeMethods" выдал исключение.

I use

microsoft visual studio 2008 version 9.0.30729.1 SP
microsoft .NET Framework Version 3.5 SP1
microsoft windows xp professional 5.1.2600 Service Pack 3 build 2600
x86

but I have some old sample project that use old libs and it works.

folder called Sample-2.4-20121007 and it uses opencv 240 don't know OpenCvSharp version

@shimat
Copy link
Owner

shimat commented May 8, 2014

The sample is for x64.
(The target platform is AnyCPU and native DLLs are built for x64.)

For x86, please exchange x64 DLLs for x86 DLLs. (e.g. opencv_core248.dll, OpenCvSharpExtern.dll)

@shimat shimat closed this as completed Jul 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants