New to Bullet

rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

New to Bullet

Post by rohit.monga108 »

I'm new to bullet and I work on linux. I just wanted to know how to execute a demo, and what to enter in the konsole command prompt in order for it to run, because I really do not know how to compile it.

Thanks,
Rohit
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

Can I get any help? I really need to know how to start.

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

Re: New to Bullet

Post by Erwin Coumans »

If you compiled Bullet using cmake

Code: Select all

cmake -G "Unix Makefiles"
make
then the binaries end up in each folder, such as Bullet/Demos/BasicDemo.
Just use cd Bullet/Demos/BasicDemo and run

Code: Select all

./AppBulletBasicDemo
If you use autotools, using

Code: Select all

./autogen.sh
./configure
make
the binaries are in Bullet/Demos/BasicDemo
run

Code: Select all

./BasicDemo
Otherwise just search for the binaries using the 'ls' command.
Thanks,
Erwin
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

Thank you. I'll give this a try on Monday and tell you how it goes.

Rohit
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

Am i supposed to run the Unix Makefiles inside the folder of each demo? because after doing that it has an error after 'make' and i don't know how to run the demo.

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

Re: New to Bullet

Post by Erwin Coumans »

It is hard to believe a unix user gets in such troubles to compile and run Bullet, perhaps you should switch to a more user friendly operating system?

You simply run the following two commands from the Bullet root folder (top level), clearly mentioned in the manual:
(press the enter key after each line)

Code: Select all

cmake . -G"Unix Makefiles"
make
and once this if finished you go

Code: Select all

cd Demos
cd AllBulletDemos
./AppAllBulletDemos
If you get errors with above instructions, reply with a few lines of errors, not more than 10 lines)
Thanks and good luck,
Erwin
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

I am still getting errors, but I tried this on Bullet version 2.75, and everything works.

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

Re: New to Bullet

Post by Erwin Coumans »

Please reply with a few lines of errors, not more than 10 lines.

Thanks,
Erwin
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

When I used bullet 2.76, after typing 'make' in the konsole, there was no response and it went back to the bash. When I did this in bullet 2.75, it had confirmation of progressing from 0 to 100%.

Thanks,
Rohit
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

There were not specific lines of errors.

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

Re: New to Bullet

Post by Erwin Coumans »

So you typed 'make' after first typing cmake . -G "Unix Makefiles" right?

Does cmake report any errors? Did you try to remove CMakeCache.txt before running cmake?
Are you using the latest cmake version 2.8?
Others seem to be able to build Bullet 2.76 with cmake/make without problems on Linux, Apple and Windows.

If make doesn't report any errors, your best bet is to report this issue with the cmake developers, and hope for help there.
http://www.cmake.org/mailman/listinfo/cmake

Thanks,
Erwin
rohit.monga108
Posts: 8
Joined: Thu Mar 04, 2010 5:55 pm

Re: New to Bullet

Post by rohit.monga108 »

a
Last edited by rohit.monga108 on Thu Jun 07, 2012 8:36 pm, edited 1 time in total.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: New to Bullet

Post by Erwin Coumans »

The documentation mentions a second option for unix users. In a console/terminal from the Bullet root directory run:

Code: Select all

./autogen.sh
./configure
make
Have you tried that?
Thanks,
Erwin