Ask Your Question

Joshua Burkholder's profile - activity

2017-01-09 21:07:53 -0600 received badge  Taxonomist
2013-02-16 05:19:04 -0600 received badge  Notable Question (source)
2012-12-08 04:53:35 -0600 received badge  Popular Question (source)
2012-09-01 23:13:29 -0600 asked a question OpenCV 2.4.2 in Visual Studio 2012/VC11?

How do I successfully compile OpenCV 2.4.2 in Visual Studio 2012/VC11?

I just downloaded & installed Visual Studio 2012 (VS2012) and I'm attempting to compile OpenCV 2.4.2. I'm getting 2492 errors. Most of these errors seem to be generated from std::tuple (a.k.a. ::std::tr1::tuple). I believe that VS2012/VC11 doesn't implement variadic templates from the C++ 2011 Standard yet, so the Standard Library used by this initial version of VS2012/VC11 has to imitate variadic templates in its definition of std::tuple (i.e. defining std::tuple for what it thinks is a reasonable number of typenames) ... and it appears that the number of typenames used doesn't quite meet the expectations of the std::tuple used in OpenCV 2.4.2.

Before I go fiddling with a bunch of settings in VS2012/VC11 or using a different Standard Library/std::tuple (maybe Boost's?), I just wanted to check to see if anyone already had an easy fix ... or some lessons learned.

... and yes ... I already use OpenCV with VS2010/VC10 (on Windows) and g++ 4.7 (on both Windows and Linux), so I'm focusing on trying to get OpenCV to work with VS2012/VC11.

Thanks In Advance, Joshua Burkholder