build bullet and run bullet example programs under Ubuntu
1, Find bullet download page, address is: https://code.google.com/p/bullet/downloads/list
2, download bullet. Find the. tgz format to download. The version I downloaded is bullet-2.82-r2704.
3. If CMake is not installed, install it using sudo apt-get install CMake.
4. If glut is not installed, install it using the sudo apt-get install freeglut3 and the sudo apt-get install Freeglut3-dev.
4. At the command prompt, enter CMake. Generate makefile.
5. If make is installed, then direct make and sudo make install solve the problem, otherwise need to install make, command is sudo apt-get install make. Make is the build project that calls the GCC compiler, and sudo made install puts the header and library functions in the/usr/local/include folder. Remember to write sudo, because writing files to/usr/local/include is a privilege.
6. Select an IDE to build. Here I choose QT Creator, the version I use is QT Creator3.0. Create a new empty QT project and then write Qmake. That's what I wrote:
# This is the project file that runs the bullet example program.
Bullet_prefix =/home/jiangcaiyang/develop/bullet-2.82-r2704framework_prefix = $${bullet_prefix}/demos/opengldemo_ PREFIX = $${bullet_prefix}/demos/basicdemoincludepath + = /usr/local/include/bullet $${framework_prefix} $${demo_prefix}sources + = $${demo_prefix}/basicdemo.cpp $${demo_prefix}/main.cpplibs + = $${FRAMEWORK _PREFIX}/LIBOPENGLSUPPORT.A -lbulletdynamics -lbulletcollision -llinearmath -LGLUT-LGLU-LGL
Build bullet and run bullet example programs under Ubuntu