Ask Your Question
0

How to build OpenCV 3.4.6 with Visual Studio 2010 on Windows 10?

asked 2019-05-19 23:25:55 -0600

NeoDreamer gravatar image

I try to build OpenCV 3.4.6 with Visual Studio 2010 and CMake 3.14.4. Below is my additional configurations WITH_OPENGL = check WITH_OPENMP = check

A configuration was successfully. but I got a errors while compile. error C2059: syntax error : '.' ...\opencv-3.4.6\sources\3rdparty\quirc\src\version_db.c 21 I think a source of quirc module is higher than C++11. So I unckeck WITH_QUIRC and retry. but the configuration was failed.

How to build OpenCV 3.4.6 with Visual Studio 2010? Is it possible to build OpenCV 3.4.6 with Visual Studio 2010? If I build OpenCV 3.4.6 with Visual Studio 2015, can I use that on Visual Studio 2010?

edit retag flag offensive close merge delete

Comments

So I unckeck WITH_QUIRC and retry. but the configuration was failed

that was probably the correct idea. how so, now ?

berak gravatar imageberak ( 2019-05-20 02:32:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-22 00:06:26 -0600

NeoDreamer gravatar image

I success to build the OpenCV 3.4.6 with Visual Studio 2010 only for 64bit. A 32bit was failed.

I use the below configuration to build.

BUILD_opencv_dnn uncheck  (It seems not to support compiler)
BUILD_opencv_world check
ENABLE_CXX11 check
VTK_DIR
WITH_MSMF uncheck (It seems not to support compiler)
WITH_MSMF_DXVA uncheck (It seems not to support compiler)
WITH_OPENGL check
WITH_OPENMP check
WITH_QUIRC uncheck  (It seems not to support compiler)
WITH_VFW (For instead of WITH_MSMF)
WITH_VTK
edit flag offensive delete link more

Comments

problem is not 32 bits but VS201 read buildbot log

LBerger gravatar imageLBerger ( 2019-05-22 01:46:49 -0600 )edit

@LBerger << thanks. But I can't understood your link article. Can you explain for me?

NeoDreamer gravatar imageNeoDreamer ( 2019-05-22 01:56:04 -0600 )edit

When you make a Pull request opencv team build your new code for all platforms. You can read configuration and output for all platforms

LBerger gravatar imageLBerger ( 2019-05-22 01:59:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-19 23:25:55 -0600

Seen: 900 times

Last updated: May 22 '19