Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94043

Summary: ODE's lack of "double-precision" use-flag may cause serious malfunctions in depending libraries.
Product: Gentoo Linux Reporter: Maarten Billemont <lhunath>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maarten Billemont 2005-05-26 00:38:01 UTC
Libraries depending on dev-games/ode can either be compiled using SINGLE or DOUBLE precision (float/double). The default is most often SINGLE, since this gives a performance boost, especially on slower, more ancient machines (and games need to be universal). Sadly, ODE is set to compile with DOUBLE precision by default, which causes incompatibilities of the kind that all depending libraries 'freak out' and fail to perform anything expected. A "double-precision" use flag should be added (just like on the dev-games/ogre ebuild). Or, setting the default back to SINGLE (preferably, the first, of course).
Comment 1 SpanKY gentoo-dev 2005-07-18 17:13:45 UTC
and how exactly does one configure it to use double versus single ?
Comment 2 Maarten Billemont 2005-07-18 17:48:11 UTC
Lyndir ode-0.5 # less INSTALL 
      1 
      2 here are the steps to buid ODE:
      3 
[...]
     12 (2) edit the settings in the file config/user-settings. the list of 
supported
     13     platforms is given in that file.

Lyndir ode-0.5 # cat config/user-settings
# ODE user settings: the following variables must be set by the user
[...]
# (2) the floating point precision to use (either "SINGLE" or "DOUBLE")

PRECISION=SINGLE
#PRECISION=DOUBLE

Wasn't too hard :P
Comment 3 SpanKY gentoo-dev 2005-07-18 21:47:55 UTC
in cvs