compiling Dynamica for Maya 2010-x64 on Centos

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
ranxx
Posts: 3
Joined: Mon Jan 10, 2011 10:24 pm

compiling Dynamica for Maya 2010-x64 on Centos

Post by ranxx »

hey all, I'm trying to compile Dynamica for Centos Maya 2010-x64. I got the latest source using svn from the repository today, ran cmake with the following line: cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
then ran make, the make process goes on for a while and then I get the following errors:

[ 90%] Building CXX object src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/btParallelConstraintSolver.o
In file included from /home/gecker/dev/trunk/src/BulletMultiThreaded/btParallelConstraintSolver.cpp:18:
/home/gecker/dev/trunk/src/BulletMultiThreaded/btParallelConstraintSolver.h:283:43: warning: no newline at end of file
/home/gecker/dev/trunk/src/BulletMultiThreaded/btParallelConstraintSolver.cpp: In member function ‘virtual btScalar btParallelConstraintSolver::solveGroup(btCollisionObject**, int, btPersistentManifold**, int, btTypedConstraint**, int, const btContactSolverInfo&, btIDebugDraw*, btStackAlloc*, btDispatcher*)’:
/home/gecker/dev/trunk/src/BulletMultiThreaded/btParallelConstraintSolver.cpp:1125: error: cast from ‘btPersistentManifold*’ to ‘uint32_t’ loses precision
/home/gecker/dev/trunk/src/BulletMultiThreaded/btParallelConstraintSolver.cpp:1285: error: cast from ‘btSolverConstraint*’ to ‘uint32_t’ loses precision
make[2]: *** [src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/btParallelConstraintSolver.o] Error 1
make[1]: *** [src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/all] Error 2
make: *** [all] Error 2


any ideas ? Thanks

-Greg
ranxx
Posts: 3
Joined: Mon Jan 10, 2011 10:24 pm

Re: compiling Dynamica for Maya 2010-x64 on Centos

Post by ranxx »

ok, -fPic added to compiler flags fixed it.

-ranxx
Post Reply