Build bullet and run bullet example programs under Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.