MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
938 stars 182 forks source link

ARM & ARM64 targets fail to compile using MSVC on windows #221

Closed tombish closed 3 years ago

tombish commented 3 years ago

There are some issues around the choice of preprocessor definitions used to build the library making cross compilation difficult.

In dTypes.h and dgTypes.h #ifdef _M_ARM is used to define _ARM_VER build. This will not trigger if target is _M_ARM64. Resulting in #error target platform not defined.

WIN32 defintion is used in both CMake build script and dTypes.cpp which is defined when atempting a cross-compile to an ARM build.