Ask Your Question
0

(opencv_core243d.dll) : fatal error LNK1112

asked Dec 13 '12

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 ?

Preview: (hide)

2 answers

Sort by » oldest newest most voted
3

answered Dec 14 '12

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).

Preview: (hide)
1

answered Dec 14 '12

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.

Preview: (hide)

Question Tools

Stats

Asked: Dec 13 '12

Seen: 5,571 times

Last updated: Dec 14 '12