Ask Your Question

Revision history [back]

Building opencv 2.4.6 in 64-bit (Windows 8 with VS 2012)

I need to create opencv cascade training applications in 64 bit, so they can use up more memory from my computer. To do this, I generated the opencv Visual Studio solution file using CMake, and then, on the Visual Studio project, I changed all the configurations from win32 to x64.

It builds a couple of projects, and then when it starts building opencv_core, the following error outputs:

opencv_core.dir\Debug\algorithm.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

And then, the rest of the projects cannot be built because opencv_core is missing.

I've searched everywhere and found no solution for this.

Any ideas?