maya dynamica build issues on linux

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
sue
Posts: 1
Joined: Tue Oct 02, 2012 2:07 pm

maya dynamica build issues on linux

Post by sue »

Hi there
i'm having some problems building dynamica for maya on linux. i have builded bullet with all examples without any problems.
does anyone habe a idea?
i tried to build with gcc 4.1.2 and 4.4.6, both give the same error.
tried to build dynamica with the bullet libs but still the same errors
here's the output:

Code: Select all

g++ -c dSolverCmd.cpp -DBits64_ -m64 -DUNIX -D_BOOL -DLINUX -DFUNCPROTO -D_GNU_SOURCE -DLINUX_64 -fPIC -fno-strict-aliasing -DREQUIRE_IOSTREAM -Wno-deprecated -Wall -Wno-multichar -Wno-comment -Wno-sign-compare -funsigned-char -Wno-reorder -fno-gnu-keywords -ftemplate-depth-25 -pthread -Wno-deprecated -fno-gnu-keywords -g -I. -I../HACD  -I../../src -I/usr/autodesk/maya2013-x64/include -I. -o dSolverCmd.o                               
../../src/BulletSoftBody/btSoftBody.h:118: error: expected identifier before numeric constant                                                                                                                                               
../../src/BulletSoftBody/btSoftBody.h:118: error: expected `}' before numeric constant                                                                                                                                                      
../../src/BulletSoftBody/btSoftBody.h:118: error: expected unqualified-id before numeric constant                                                                                                                                           
../../src/BulletSoftBody/btSoftBody.h:126: error: ‘eVSolver’ was not declared in this scope                                                                                                                                                 
../../src/BulletSoftBody/btSoftBody.h:126: error: template argument 1 is invalid                                                                                                                                                            
../../src/BulletSoftBody/btSoftBody.h:126: error: invalid type in declaration before ‘;’ token                                                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:127: error: ‘ePSolver’ was not declared in this scope                                                                                                                                                 
../../src/BulletSoftBody/btSoftBody.h:127: error: template argument 1 is invalid                                                                                                                                                            
../../src/BulletSoftBody/btSoftBody.h:127: error: invalid type in declaration before ‘;’ token                                                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:164: error: ‘eFeature’ has not been declared                                                                                                                                                          
../../src/BulletSoftBody/btSoftBody.h:164: error: ISO C++ forbids declaration of ‘_’ with no type                                                                                                                                           
../../src/BulletSoftBody/btSoftBody.h:164: error: expected ‘;’ before ‘feature’                                                                                                                                                             
../../src/BulletSoftBody/btSoftBody.h:171: warning: ‘struct ImplicitFn’ has virtual functions but non-virtual destructor                                                                                                                    
../../src/BulletSoftBody/btSoftBody.h: In member function ‘void Body::applyVImpulse(const btVector3&, const btVector3&) const’:                                                                                                             
../../src/BulletSoftBody/btSoftBody.h:439: error: ‘clusterVImpulse’ is not a member of ‘btSoftBody’                                                                                                                                         
../../src/BulletSoftBody/btSoftBody.h: In member function ‘void Body::applyDImpulse(const btVector3&, const btVector3&) const’:                                                                                                             
../../src/BulletSoftBody/btSoftBody.h:444: error: ‘clusterDImpulse’ is not a member of ‘btSoftBody’                                                                                                                                         
../../src/BulletSoftBody/btSoftBody.h: In member function ‘void Body::applyVAImpulse(const btVector3&) const’:                                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:462: error: ‘clusterVAImpulse’ is not a member of ‘btSoftBody’                                                                                                                                        
../../src/BulletSoftBody/btSoftBody.h: In member function ‘void Body::applyDAImpulse(const btVector3&) const’:                                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:467: error: ‘clusterDAImpulse’ is not a member of ‘btSoftBody’                                                                                                                                        
../../src/BulletSoftBody/btSoftBody.h: In member function ‘void Body::applyDCImpulse(const btVector3&) const’:                                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:477: error: ‘clusterDCImpulse’ is not a member of ‘btSoftBody’                                                                                                                                        
../../src/BulletSoftBody/btSoftBody.h: At global scope:                                                                                                                                                                                     
../../src/BulletSoftBody/btSoftBody.h:528: warning: ‘struct AJoint::IControl’ has virtual functions but non-virtual destructor                                                                                                              
../../src/BulletSoftBody/btSoftBody.h:562: error: ‘eAeroModel’ has not been declared                                                                                                                                                        
../../src/BulletSoftBody/btSoftBody.h:562: error: ISO C++ forbids declaration of ‘_’ with no type                                                                                                                                           
../../src/BulletSoftBody/btSoftBody.h:562: error: expected ‘;’ before ‘aeromodel’                                                                                                                                                           
../../src/BulletSoftBody/btSoftBody.h:682: error: expected `)' before ‘*’ token                                                                                                                                                             
../../src/BulletSoftBody/btSoftBody.h:685: error: expected `)' before ‘*’ token                                                                                                                                                             
../../src/BulletSoftBody/btSoftBody.h:690: error: declaration of ‘~btSoftBody’ as non-member                                                                                                                                                
../../src/BulletSoftBody/btSoftBody.h:701: error: virtual outside class declaration                                                                                                                                                         
../../src/BulletSoftBody/btSoftBody.h:707: error: non-member function ‘bool checkLink(int, int)’ cannot have cv-qualifier                                                                                                                   
../../src/BulletSoftBody/btSoftBody.h:709: error: non-member function ‘bool checkLink(const Node*, const Node*)’ cannot have cv-qualifier                                                                                                   
../../src/BulletSoftBody/btSoftBody.h:713: error: non-member function ‘bool checkFace(int, int, int)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:796: error: non-member function ‘btScalar getMass(int)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:798: error: non-member function ‘btScalar getTotalMass()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:826: error: non-member function ‘btScalar getVolume()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:828: error: non-member function ‘int clusterCount()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:831: error: non-member function ‘btVector3 clusterCom(int)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:865: error: variable or field ‘setSolver’ declared void
../../src/BulletSoftBody/btSoftBody.h:865: error: ‘eSolverPresets’ has not been declared
../../src/BulletSoftBody/btSoftBody.h: In function ‘void setSoftBodySolver(btSoftBodySolver*)’:
../../src/BulletSoftBody/btSoftBody.h:905: error: ‘m_softBodySolver’ was not declared in this scope
../../src/BulletSoftBody/btSoftBody.h: In function ‘btSoftBodySolver* getSoftBodySolver()’:
../../src/BulletSoftBody/btSoftBody.h:913: error: ‘m_softBodySolver’ was not declared in this scope
../../src/BulletSoftBody/btSoftBody.h: At global scope:
../../src/BulletSoftBody/btSoftBody.h:919: error: non-member function ‘btSoftBodySolver* getSoftBodySolver()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h: In function ‘btSoftBodySolver* getSoftBodySolver()’:
../../src/BulletSoftBody/btSoftBody.h:919: error: redefinition of ‘btSoftBodySolver* getSoftBodySolver()’
../../src/BulletSoftBody/btSoftBody.h:911: error: ‘btSoftBodySolver* getSoftBodySolver()’ previously defined here
../../src/BulletSoftBody/btSoftBody.h:921: error: ‘m_softBodySolver’ was not declared in this scope
../../src/BulletSoftBody/btSoftBody.h: In function ‘const btSoftBody* upcast(const btCollisionObject*)’:
../../src/BulletSoftBody/btSoftBody.h:931: error: ‘CO_SOFT_BODY’ was not declared in this scope
../../src/BulletSoftBody/btSoftBody.h: In function ‘btSoftBody* upcast(btCollisionObject*)’:
../../src/BulletSoftBody/btSoftBody.h:937: error: ‘CO_SOFT_BODY’ was not declared in this scope
../../src/BulletSoftBody/btSoftBody.h: At global scope:
../../src/BulletSoftBody/btSoftBody.h:946: error: virtual outside class declaration
../../src/BulletSoftBody/btSoftBody.h:946: error: non-member function ‘void getAabb(btVector3&, btVector3&)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:958: error: ‘eFeature’ has not been declared
../../src/BulletSoftBody/btSoftBody.h:958: error: expected ‘,’ or ‘...’ before ‘&’ token
../../src/BulletSoftBody/btSoftBody.h:958: error: non-member function ‘int rayTest(const btVector3&, const btVector3&, btScalar&, int)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:960: error: non-member function ‘btVector3 evaluateCom()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:961: error: ‘class btSoftBody::sCti’ has not been declared
../../src/BulletSoftBody/btSoftBody.h:961: error: non-member function ‘bool checkContact(const btCollisionObjectWrapper*, const btVector3&, btScalar, int&)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:981: error: ‘ePSolver’ has not been declared
../../src/BulletSoftBody/btSoftBody.h:982: error: conflicting declaration ‘void (* getSolver)(btSoftBody*, btScalar)’
../../src/BulletSoftBody/btSoftBody.h:981: error: ‘getSolver’ has a previous declaration as ‘void (* getSolver)(btSoftBody*, btScalar, btScalar)’
../../src/BulletSoftBody/btSoftBody.h:982: error: ‘eVSolver’ has not been declared
../../src/BulletSoftBody/btSoftBody.h:985: error: virtual outside class declaration
../../src/BulletSoftBody/btSoftBody.h:985: error: non-member function ‘int calculateSerializeBufferSize()’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:988: error: virtual outside class declaration
../../src/BulletSoftBody/btSoftBody.h:988: error: non-member function ‘const char* serialize(void*, btSerializer*)’ cannot have cv-qualifier
../../src/BulletSoftBody/btSoftBody.h:993: error: expected declaration before ‘}’ token
../../src/BulletSoftBody/btSoftBody.h:830: warning: ‘btVector3 clusterCom(const Cluster*)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:833: warning: ‘btVector3 clusterVelocity(const Cluster*, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:835: warning: ‘void clusterVImpulse(Cluster*, const btVector3&, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:836: warning: ‘void clusterDImpulse(Cluster*, const btVector3&, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:837: warning: ‘void clusterImpulse(Cluster*, const btVector3&, const Impulse&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:838: warning: ‘void clusterVAImpulse(Cluster*, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:839: warning: ‘void clusterDAImpulse(Cluster*, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:840: warning: ‘void clusterAImpulse(Cluster*, const Impulse&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:841: warning: ‘void clusterDCImpulse(Cluster*, const btVector3&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:873: warning: ‘void solveCommonConstraints(btSoftBody**, int, int)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:875: warning: ‘void solveClusters(const btAlignedObjectArray<btSoftBody*>&)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:929: warning: ‘const btSoftBody* upcast(const btCollisionObject*)’ defined but not used
../../src/BulletSoftBody/btSoftBody.h:935: warning: ‘btSoftBody* upcast(btCollisionObject*)’ defined but not used
../../src/BulletSoftBody/btSoftBody.h:976: warning: ‘void PSolve_Anchors(btSoftBody*, btScalar, btScalar)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:977: warning: ‘void PSolve_RContacts(btSoftBody*, btScalar, btScalar)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:978: warning: ‘void PSolve_SContacts(btSoftBody*, btScalar, btScalar)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:979: warning: ‘void PSolve_Links(btSoftBody*, btScalar, btScalar)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:980: warning: ‘void VSolve_Links(btSoftBody*, btScalar)’ declared ‘static’ but never defined
../../src/BulletSoftBody/btSoftBody.h:981: warning: ‘getSolver’ defined but not used
thanks 100times
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: maya dynamica build issues on linux

Post by Erwin Coumans »

I fixed the compile problem, please update to latest Dynamica trunk at http://dynamica.googlecode.com

Thanks for the report!
Post Reply