I got the same errors when I tried your Makefile -- it is odd that the MS compiler didn't catch some of these. A few simple changes, though, allows it to compile. I will have Dan check in the changes. I didn't have time to link and run it yesterday but I will give it a try today.
-- ra -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Justin Clark-Casey Sent: Wednesday, June 29, 2011 4:51 PM To: [email protected] Subject: Re: [Opensim-dev] Built libbullet shared object libraries for Linux but this isn't what you wanted! On 27/06/11 16:52, Adams, Robert wrote: > Building Bullet itself is a start. Thanks Justin. > > The makefile should be fairly straight forward as there are just the two cpp > files and one .h file with the only dependencies being on the std library and > Bullet itself. As you now know, Bullet used CMAKE for its build/configuration > tool and I don't know if there is a way to link a BulletSim build into it > (put the Bullet directory under BulletSim and do a CMAKE which builds both > together). > > I'm setting up a Linux build environment so I should be able to help anyone > working on this by next weekend. I'm doing some stress testing this week and > then I will look into linksets again -- I want to get vehicles working. I put in a scratch Makefile and fixed one definition issue in BulletSim.cpp. However, on make this still brings up the errors BulletSim.cpp:38:14: error: 'gDeactivationTime' was declared 'extern' and later 'static' BulletDynamics/Dynamics/btRigidBody.h:29:17: error: previous declaration of 'gDeactivationTime' BulletSim.cpp: In member function 'int BulletSim::PhysicsStep(btScalar, int, btScalar, int*, EntityProperties***, int*, unsigned int**)': BulletSim.cpp:107:79: error: cast from 'void*' to 'unsigned int' loses precision BulletSim.cpp:108:79: error: cast from 'void*' to 'unsigned int' loses precision BulletSim.cpp: In member function 'btCollisionShape* BulletSim::CreateShape(ShapeData*)': BulletSim.cpp:405:61: error: no matching function for call to 'BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*&, btVector3)' BulletSim.h:469:7: note: candidate is: void BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*, btVector3&) BulletSim.cpp:426:62: error: no matching function for call to 'BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*&, btVector3)' BulletSim.h:469:7: note: candidate is: void BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*, btVector3&) BulletSim.cpp:432:61: error: no matching function for call to 'BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*&, btVector3)' BulletSim.h:469:7: note: candidate is: void BulletSim::AdjustScaleForCollisionMargin(btCollisionShape*, btVector3&) BulletSim.cpp: In member function 'SweepHit BulletSim::ConvexSweepTest(unsigned int, btVector3&, btVector3&, btScalar)': BulletSim.cpp:1166:95: error: cast from 'void*' to 'unsigned int' loses precision BulletSim.cpp: In member function 'RaycastHit BulletSim::RayTest(unsigned int, btVector3&, btVector3&)': BulletSim.cpp:1209:70: error: cast from 'void*' to 'unsigned int' loses precision make: *** [BulletSim.o] Error 1 It's a long time since I did any significant c/cpp (and then it wasn't on Linux) so I'm not sure why this is happening. Maybe it's gcc specific. > > I was able to pull opensim-libs anonymously last week > (http://opensimulator.org/svn/opensim-libs). Has it broken since then? Thanks Robert - I was trying the wrong url. I put the information into the wiki. > > -- ra > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Justin Clark-Casey > Sent: Sunday, June 26, 2011 4:48 PM > To: [email protected] > Subject: [Opensim-dev] Built libbullet shared object libraries for Linux but > this isn't what you wanted! > > Hi Robert. I briefly putzed around with building shared object Bullet 2.78 > under Linux tonight and popped the results > in as commit 23bf773 on the bulletsim branch. > > However, I just realised that you weren't asking for the bullet libraries to > be built. What you were really asking for > in http://lists.berlios.de/pipermail/opensim-dev/2011-June/010271.html were > Linux/OSX makefiles to build your > BulletSim.dll interfacing library in the opensim-libs svn repo (for which > anonymous access is unfortunately not > currently working - this need to be fixed). > > That doesn't look too difficult but it's a little more involved for me since > it's a long time since I wrote a Makefile. > I don't know when I might get a slice of time to do that, so I think help > from anybody else would still be very much > appreciated. > -- Justin Clark-Casey (justincc) http://justincc.org/blog http://twitter.com/justincc _______________________________________________ Opensim-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/opensim-dev _______________________________________________ Opensim-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/opensim-dev
