Closed GoogleCodeExporter closed 9 years ago
I'm having a few issues with this build myself. Did you have to specify the
Multi-threaded DLL (/MD) runtime library (USE_MSVC_RUNTIME_LIBRARY_DLL in
CMake) when compiling Bullet? Previous versions of Visual Studio seemed to
treat this mismatch as a warning instead of an error.
Thanks for the patch! Added in r416.
Original comment by andres.traks
on 20 Sep 2012 at 9:55
I also had the /MD issue, but only when I tried to convert the 2010 project to
a 2012 project. The V11 project provided by yourself worked fine. But I think
"USE_MSVC_RUNTIME_LIBRARY_DLL" is the proper solution for this as the /MT and
/CLR flags cannot work together.
Original comment by Hagn99@gmail.com
on 20 Sep 2012 at 10:50
So to finally recap, USE_MSVC_RUNTIME_LIBRARY_DLL is necessary as both Bullet
and BulletSharp need to have /MD.
There is still a bug in CMake where USE_MSVC_RUNTIME_LIBRARY_DLL becomes
deselected in some cases and Bullet is then built with /MT.
"/NODEFAULTLIB:msvcprt" removed the /MD library that BulletSharp links to, so
both would be linked with /MT. This fixed the build (for VS2010 at least), but
the runtime library was wrong. So using /NODEFAULTLIB is incorrect.
Thanks again!
Original comment by andres.traks
on 7 May 2014 at 9:10
Original issue reported on code.google.com by
Hagn99@gmail.com
on 19 Sep 2012 at 11:51Attachments: