Ask Your Question

(opencv_core243d.dll) : fatal error LNK1112

asked 2012-12-13 16:04:04 -0600

Adnane gravatar image

Hi, I installed version 2.4.3 of opencv on my x64 machine runnig windows 8. to test the installation I tried the camera calibration sample from the sample folder. After adding the necessary paths (C:\opencv\build\include and C:\opencv\build\x64\vc10\lib) and libraries (opencv_calib3d243d and so on ...), I tried to build the project, unfortunately I failed on the following error

(opencv_core243d.dll) : fatal error LNK1112 module machine type 'x64' conflicts with target machine type'X86'

is there any solution please ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-12-13 23:09:07 -0600

Daniil Osokin gravatar image

As I understood, you try to build project for x86 system, but used libs for x64. You can change libs folder to x86, or change target machine type to x64 (described here).

edit flag offensive delete link more

answered 2012-12-14 08:00:45 -0600

ubehagelig gravatar image

1) Point to the x64 folder(s) when setting up the Library Directories e.g. C:\opencv\build\x64\vc10\lib if you are on Visual Studio 2010.

2) Where it says "Debug" and "Win32" in the top of the main window click in the drop-down menu for the Win32 and choose "Configuration Manager". Here choose x64.

I also recommend to delete the "Debug | Win32" and "Release | Win32" folders in your "Property Manager" tab just to make sure they don't bother you again. All you need are the x64 Debug and Release.

edit flag offensive delete link more

Question Tools


Asked: 2012-12-13 16:04:04 -0600

Seen: 5,510 times

Last updated: Dec 14 '12