INSTALL 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Bullet Collision Detection and Physics Library
  2. ** Windows Compilation **
  3. Under Windows, projectfiles for Visual Studio version 6,7,7.1 and 8 are
  4. available in msvc/<version>. For example, for Visual Studio 2005, open
  5. msvc/8/wksbullet.sln
  6. The ColladaDemo and ConvexDecomposition demo needs to be able to locate the
  7. data files (jenga.dae and file.obj) in the current directory. Make sure Visual
  8. Studio points to the right folder (..\..).
  9. Alternatively use CMake to autogenerate a build system for Windows:
  10. - Download/install CMake from www.cmake.org or package manager
  11. - List available build systems by running 'cmake' in the Bullet root folder
  12. - Create a build system using the -G option for example:
  13. cmake . -G "Visual Studio 9 2008" or
  14. cmake . -G "Visual Studio 9 2008 Win64"
  15. ** Linux Compilation **
  16. - Download/install CMake from www.cmake.org or package manager
  17. CMake is like autoconf in that it will create build scripts which are then
  18. used for the actual compilation
  19. - There are some options for cmake builds:
  20. BUILD_SHARED_LIBS: default 'OFF', set to 'ON' to build .so libraries
  21. BUILD_EXTRAS: default 'ON', compiles additional libraries in 'Extras'
  22. BUILD_DEMOS: default 'ON', compiles applications found in 'Demos'
  23. CMAKE_INSTALL_PREFIX: default '/usr/local', the installation path.
  24. CMAKE_INSTALL_RPATH: if you install outside a standard ld search path,
  25. then you should set this to the installation lib path.
  26. Other options may be discovered by 'cmake --help-variable-list' and
  27. 'cmake --help-variable OPTION'
  28. - Run 'cmake' with desired options of the form -DOPTION=VALUE
  29. By default this will create the usual Makefile build system, but CMake can
  30. also produce Eclipse or KDevelop project files. See 'cmake --help' to see
  31. what "generators" are available in your environment, selected via '-G'.
  32. For example:
  33. cmake -DBUILD_SHARED_LIBS=ON
  34. - Assuming using the default Makefile output from cmake, run 'make' to
  35. build, and then 'make install' if you wish to install.
  36. ** Mac OS X Compilation **
  37. - Download/install CMake from www.cmake.org or package manager
  38. CMake is like autoconf in that it will create build scripts which are then
  39. used for the actual compilation
  40. - There are some options for cmake builds:
  41. BUILD_SHARED_LIBS: default 'OFF', set to 'ON' to build .dylib libraries
  42. BUILD_EXTRAS: default 'ON', compiles additional libraries in 'Extras'
  43. BUILD_DEMOS: default 'ON', compiles applications found in 'Demos'
  44. CMAKE_INSTALL_PREFIX: default '/usr/local', the installation path.
  45. CMAKE_INSTALL_NAME_DIR: if you install outside a standard ld search
  46. path, then you should set this to the installation lib/framework path.
  47. To build framework bundles:
  48. FRAMEWORK: default 'OFF', also requires 'BUILD_SHARED_LIBS' set ON
  49. If both FRAMEWORK and BUILD_SHARED_LIBS are set, will create
  50. OS X style Framework Bundles which can be placed in
  51. linked via the -framework gcc argument or drag into Xcode projects.
  52. (If not framework, then UNIX style 'include' and 'lib' will be produced)
  53. Other options may be discovered by 'cmake --help-variable-list' and
  54. 'cmake --help-variable OPTION'
  55. - Run 'cmake' with desired options of the form -DOPTION=VALUE
  56. By default this will create the usual Makefile build system, but CMake can
  57. also produce Eclipse or KDevelop project files. See 'cmake --help' to see
  58. what "generators" are available in your environment, selected via '-G'.
  59. For example:
  60. cmake -DBUILD_SHARED_LIBS=ON -DFRAMEWORK=ON \
  61. -DCMAKE_INSTALL_PREFIX=/Library/Frameworks \
  62. -DCMAKE_INSTALL_NAME_DIR=/Library/Frameworks
  63. - Assuming using the default Makefile output from cmake, run 'make' to build
  64. and then 'make install'.
  65. ** Alternative Mac OS X and Linux via 'jam' or autoconf/make **
  66. - at the command line:
  67. ./autogen.sh
  68. ./configure
  69. - 'jam' or 'make' depending on preference
  70. - If jam is not available for your system, you can compile it, jam sources
  71. are included with the Bullet sources in jam-2.5
  72. - compiling jam:
  73. cd jam-2.5
  74. make
  75. sudo make install
  76. ** For more help, visit http://www.bulletphysics.com **