Problem compiling on Ubuntu 7.04 64bit - enricox - 09-13-2007
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
- joevenzon - 09-13-2007
You need to recompile your libode (open dynamics engine) with single-precision instead of double precision reals.
- enricox - 09-14-2007
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
|