how to build opencv 2.4.8 with visual studio ultimate 2013?

asked 2014-02-03 09:27:50 -0600

saddamos gravatar image

updated 2014-02-05 04:28:44 -0600

how to build opencv 2.4.8 with visual studio ultimate 2013? i have this problem:

Error   1   error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'   Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\opencv_core248d.lib(opencv_core248d.dll)
edit retag flag offensive close merge delete

Comments

You are linking with x64 bit libraries but your built target of Visual Studio is set to 32 bit systems defined by x86. You can change the target system in the project settings. Make sure to make it x64 and fill in the correct linker settings and you will be set.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-02-05 04:30:05 -0600 )edit