AllBulletDemos & Linux

Enrico
Posts: 42
Joined: Thu May 17, 2007 9:34 am
Location: Stuttgart, Germany

AllBulletDemos & Linux

Post by Enrico »

Hi,

I just got the new Bullet 2.64 and the "AllBulletDemos" does not compile with GCC 4.x (tested on AMD64 and x86):

Code: Select all

In file included from Demos/AllBulletDemos/Main.cpp:21:
./Extras/glui/GL/glui.h:377: error: ISO C++ forbids declaration of ‘GLUI_Rollout’ with no type
./Extras/glui/GL/glui.h:377: error: ‘GLUI_Rollout’ declared as a ‘virtual’ field
./Extras/glui/GL/glui.h:377: error: expected ‘;’ before ‘*’ token
./Extras/glui/GL/glui.h:382: error: expected `;' before ‘virtual’
./Extras/glui/GL/glui.h:382: error: ISO C++ forbids declaration of ‘GLUI_Tree’ with no type
./Extras/glui/GL/glui.h:382: error: ‘GLUI_Tree’ declared as a ‘virtual’ field
./Extras/glui/GL/glui.h:382: error: expected ‘;’ before ‘*’ token
./Extras/glui/GL/glui.h:387: error: expected `;' before ‘virtual’
Demos/AllBulletDemos/Main.cpp: In function ‘void Resize(int, int)’:
Demos/AllBulletDemos/Main.cpp:68: warning: unused variable ‘ratio’
Demos/AllBulletDemos/Main.cpp:46: warning: '<unnamed>::z' defined but not used
With GCC 3.2.3 it compiles and works :)

All in all it would be better to use a maybe available GLUI installation. Most Linux distributions come with GLUI and GLUI-dev packages, so it should be no problem. Don't care for Windows though :lol:

I have seen some new warnings...I will see if I can find time to fix them :)



Best regards,
Enrico
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: AllBulletDemos & Linux

Post by Erwin Coumans »

Bullet includes a modified version of glui that doesn't require run-time type checking (RTTI).

It should be a simple fix, can you try if the latest SVN version works fine (or attached glui.h) ?

Thanks for the report,
Erwin
You do not have the required permissions to view the files attached to this post.
Enrico
Posts: 42
Joined: Thu May 17, 2007 9:34 am
Location: Stuttgart, Germany

Re: AllBulletDemos & Linux

Post by Enrico »

Great, works now :)

Find attached a patch which removes some unused variables in the bullet library. I will look at the demos later.

Are you interested in some more documentation, maybe for the wiki? I have written lots of notes (for myself) about what a physics engine is, what it does, what it does not, basic principles of physics and stuff like that...
You do not have the required permissions to view the files attached to this post.