Ask Your Question
0

MIDL2025 Error when building OpenCV using Visual Studio 2015?

asked 2016-10-19 12:25:49 -0600

So, I'm kind of new to C++ and I'm having some problems trying to build OpenCV using Visual Studio 2015.

I'm not sure if this is the correct way to do it, but I dragged all the source files from opencv into my own project so it now looks like this :

image description

However when I build it I get these 2 errors :

MIDL2025 - syntax error : expecting an interface name or DispatchInterfaceName or CoclassName or ModuleName or LibraryName or ContractName or a type specifier near "namespace" - IVectorChangedEventArgs.idl - line 11
MIDL2026 - cannot recover from earlier syntax errors; aborting compilation - IVectorChangedEventArgs.idl - line 11

I'm trying to build it in Debug x86 mode, if that matters.

edit retag flag offensive close merge delete

Comments

1

You should use CMake. You can read a tutorial here

LBerger gravatar imageLBerger ( 2016-10-19 14:56:58 -0600 )edit

(Have no idea how to reply to comments...) Checked the videos out, you have to download like 6 different application to make it work? e.e Is that the only way...?

TheShroom gravatar imageTheShroom ( 2016-10-19 15:18:11 -0600 )edit

No just download cmake and use cmake gui to make sln file to build opencv. Open this sln file to build opencv. Then you can use this sample to build your own example

LBerger gravatar imageLBerger ( 2016-10-19 15:22:42 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-19 15:33:43 -0600

updated 2016-10-19 15:34:27 -0600

Managed to get it work using this tutorial : here

I'll go ahead and try that out as well, just to learn how to use CMake.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-19 12:25:49 -0600

Seen: 579 times

Last updated: Oct 19 '16