PhysX icon indicating copy to clipboard operation
PhysX copied to clipboard

[help] MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease'

Open UnidayStudio opened this issue 4 years ago • 7 comments

I'm trying to build PhysX with my app following this guide, but I'm getting the following errors when I compile my project:

1>FastEngine.lib(PhysicsSystem.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in main.obj
1>FastEngine.lib(PhysicsSystem.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in main.obj

I don't know exactly what I missed but looks like PhysX keeps compiling something in debug mode

My project solutions and PhysX where compiled in Release x64 mode and the runtime library is set to Multi-threaded DLL (/MD).

Here is the config XML file that I used to generate the solution:

<?xml version="1.0" encoding="utf-8"?>
<preset name="vc15win64" comment="VC15 Win64 PhysX general settings">
  <platform targetPlatform="win64" compiler="vc15" />
  <CMakeSwitches>
    <cmakeSwitch name="PX_BUILDSNIPPETS" value="True" comment="Generate the snippets" />
    <cmakeSwitch name="PX_BUILDPUBLICSAMPLES" value="False" comment="Generate the samples projects" />
    <cmakeSwitch name="PX_GENERATE_STATIC_LIBRARIES" value="False" comment="Generate static libraries" />
    <cmakeSwitch name="NV_USE_STATIC_WINCRT" value="False" comment="Use the statically linked windows CRT" />
    <cmakeSwitch name="NV_USE_DEBUG_WINCRT" value="False" comment="Use the debug version of the CRT" />
    <cmakeSwitch name="PX_FLOAT_POINT_PRECISE_MATH" value="False" comment="Float point precise math" />
  </CMakeSwitches>
  <CMakeParams>
    <cmakeParam name="CMAKE_INSTALL_PREFIX" value="install/vc15win64/PhysX" comment="Install path relative to PhysX SDK root" />
  </CMakeParams>
</preset>```

Can you help me?

UnidayStudio avatar Sep 06 '19 01:09 UnidayStudio