how to run opencv program based on opencv source

asked 2018-06-07 05:10:27 -0600

ycli12 gravatar image

updated 2018-06-07 05:16:41 -0600

berak gravatar image

In order to see some code in opencv,I used cmake tool to make a solution based on VS2015.(My computer system is win7 X64).Finally I got a solution shown below.Now I can see the code using Ctrl+F and goto definition of some functions.How can I write some code using opencv source code so that I can debug opencv source code to see how some variables change?I cant figure it out base on this project cmake produce.Or is there some similar project I can download to get my purpose?

By the way,I just press run butten in vs2015 and it shows "fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'".How can I fix it?

Thans a lot!

image description

edit retag flag offensive close merge delete


you're trying to build a 32bit project, and the opencv libs are x64

toggle the (red marked) box at the top, where it says "Win32". there should be a "Win64" option (or similar), choose that instead.

again: x86 == Win32, x64 == Win64

berak gravatar imageberak ( 2018-06-07 05:15:48 -0600 )edit