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

asked 2013-10-29 11:47:36 -0500

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?

edit retag flag offensive close merge delete

Comments

When you generate solution with CMake, choose "Visual Studio 11 Win64" generator.

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2013-10-29 12:15:48 -0500 )edit

SInce I only needed the traincascade part, I created a clean project and added the traincascade source files, and then the x64 configs worked normally.

Pedro Batista gravatar imagePedro Batista ( 2013-10-31 12:08:27 -0500 )edit