This recipe is dedicated to the building of the open source ODE (Open Dynamics Engine) physical simulation library, which is one of the oldest rigid body simulators for interactive applications.
Download the most recent source code from the library home page: http://www.ode.org/download.html.
Compiling ODE is no different from other libraries. One subtle point, is the selection between
single
anddouble
floating-point precision. Standard compilation involves theautoconf
andautomake
tools, but here we just prepareAndroid.mk
,makefile
as usual, andodeconfig.h
. We need to define either thedDOUBLE
ordSINGLE
symbol there to enable thesingle
ordouble
precision calculations. There is this line in the beginning of theodeconfig.h
file:#define dSINGLE
It enables the single-precision, 32-bit floating point calculations which are sufficient for simple interactive applications. Changing the value to
dDOUBLE
enables the double-precision...