Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem compiling on Ubuntu 7.04 64bit
09-13-2007, 05:43 AM,
#1
Problem compiling on Ubuntu 7.04 64bit
I'm trying compiling latest svn(R1844, data R78), scons arch=a64 gives me the following error:

Code:
g++ -o build/physics.o -c -Wall -g3 -march=athlon64 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/physics.cpp
src/physics.cpp: In member function ‘void PHYSICS::CollideBox(const VERTEX&, const QUATERNION&, const VERTEX&, std::list<PHYSICSCONTACT, std::allocator<PHYSICSCONTACT> >&, const PHYSICSCOLLISIONSETTINGS&) const’:
src/physics.cpp:187: error: cannot convert ‘float*’ to ‘const dReal*’ for argument ‘2’ to ‘void dGeomSetQuaternion(dxGeom*, const dReal*)’
src/physics.cpp: In member function ‘void PHYSICSCONTACT::SetFromODEContactGeom(dContactGeom)’:
src/physics.cpp:218: error: no matching function for call to ‘VERTEX::Set(dReal [4])’
include/3dmath.h:41: note: candidates are: void VERTEX::Set(const VERTEX&)
include/3dmath.h:42: note:                 void VERTEX::Set(float, float, float)
include/3dmath.h:43: note:                 void VERTEX::Set(const float*)
src/physics.cpp:219: error: no matching function for call to ‘VERTEX::Set(dReal [4])’
include/3dmath.h:41: note: candidates are: void VERTEX::Set(const VERTEX&)
include/3dmath.h:42: note:                 void VERTEX::Set(float, float, float)
include/3dmath.h:43: note:                 void VERTEX::Set(const float*)
src/physics.cpp: In member function ‘void PHYSICSOBJECT::SetQuaternion(const QUATERNION&)’:
src/physics.cpp:279: error: cannot convert ‘float*’ to ‘const dReal*’ for argument ‘2’ to ‘void dGeomSetQuaternion(dxGeom*, const dReal*)’
scons: *** [build/physics.o] Error 1
scons: building terminated because of errors.

I'm too newbe to fix this error
Thanks in advance
Reply
09-13-2007, 01:03 PM,
#2
 
You need to recompile your libode (open dynamics engine) with single-precision instead of double precision reals.
Reply
09-14-2007, 08:00 AM,
#3
 
ok, I uninstalled the ode package provided with ubuntu repository, downloaded the latest src version, compiled, installed, and now vdrift compile and run !
Thanks a lot Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)