Skip to main content
October 25, 2017

Build fails after changing code generation option from /MTd to /MD

I have Oculus SDK version 1.18.0 and I'm trying to build LibOVR.lib with /MD code generation option. But after changing the code generation option from /MTd to /MD I always get the error:

Error    LNK2038    mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in CAPI_GLE.obj    OculusRoomTiny (GL) 

The project builds with the default /MTd option. I just want a LibOVR.lib file that works with /MD, anyone know how to do this?


1 reply

October 25, 2017
Dumb mistake. Had to build LibOVR and LibOVRKernel project first with /MD