OpenCV VS2013模块机与目标机器冲突

时间:2014-11-23 19:45:46

标签: c++ windows opencv visual-studio-2013

我正在尝试在Visual Studio 2013上运行最简单的OpenCV 2.4.9程序。 在尝试调试时,我得到了 错误LNK1112:模块计算机类型“x86”与目标计算机类型“X64” 冲突。

现在一直坚持与此斗争,有人可以帮助我吗?

我的系统 64位。

VisualStudio一如既往 32位。

我链接了:

opencv_249 \ build \ x64 \ vc12 \ bin,opencv_249 \ build \ x64 \ vc12 \ lib

我设置目标机器: MachineX64(/ MACHINE:X64)

我的活跃平台: x64 (从Win32更改)

修改

即使首次设置x64平台然后连接x64我收到此消息,x86来自哪里?:

'xxx.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'B:\Libraries\opencv_249\build\x86\vc12  \bin\opencv_core249d.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Unloaded 'B:\Libraries\opencv_249\build\x86\vc12\bin\opencv_core249d.dll'
The program '[2780] xxx.exe' has exited with code -1073741701 (0xc000007b).

发现这篇文章,似乎问题适用于我,因为我使用Windows8.1,但是我没有设法使用帖子中的提示来解决问题。有人有想法吗? http://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/32-bit-application-fails-to-start-after-81-upgrade/b825723e-e2a2-4c8f-bd1f-10446a5d7059?page=5&tm=1416787803471

.vxproj的XML:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <Filter Include="Source Files">
      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
    </Filter>
    <Filter Include="Header Files">
      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
      <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
    </Filter>
    <Filter Include="Resource Files">
      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="main.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
  </ItemGroup>
</Project>

0 个答案:

没有答案