Forums
Problem compiling on Ubuntu 7.04 64bit - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Problem compiling on Ubuntu 7.04 64bit (/showthread.php?tid=780)



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 Big Grin