2
0

INSTALL 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Bullet Collision Detection and Physics Library
  2. See also http://bulletphysics.org/mediawiki-1.5.8/index.php/Creating_a_project_from_scratch
  3. ** Windows Compilation **
  4. Open the Microsoft Visual Studio solution in msvc/20xx/BULLET_PHYSICS.sln
  5. Alternatively, use CMake to autogenerate a build system for Windows:
  6. - Download/install CMake from www.cmake.org or package manager
  7. - Use cmake-gui or
  8. - List available build systems by running 'cmake' in the Bullet root folder
  9. - Use cmake-gui
  10. - Create a build system using the -G option for example:
  11. cmake . -G "Visual Studio 9 2008" or
  12. cmake . -G "Visual Studio 9 2008 Win64"
  13. ** Linux Compilation **
  14. - Download/install CMake from www.cmake.org or package manager
  15. CMake is like autoconf in that it will create build scripts which are then
  16. used for the actual compilation
  17. - List available build systems by running 'cmake' in the Bullet root folder
  18. - Create a build system using the -G option for example:
  19. cmake . -G "Unix Makefiles"
  20. - There are some options for cmake builds:
  21. BUILD_SHARED_LIBS: default 'OFF', set to 'ON' to build .so libraries
  22. BUILD_EXTRAS: default 'ON', compiles additional libraries in 'Extras'
  23. BUILD_DEMOS: default 'ON', compiles applications found in 'Demos'
  24. CMAKE_INSTALL_PREFIX: default '/usr/local', the installation path.
  25. CMAKE_INSTALL_RPATH: if you install outside a standard ld search path,
  26. then you should set this to the installation lib path.
  27. CMAKE_BUILD_TYPE: default 'Release', can include debug symbols with
  28. either 'Debug' or 'RelWithDebInfo'.
  29. Other options may be discovered by 'cmake --help-variable-list' and
  30. 'cmake --help-variable OPTION'
  31. - Run 'cmake' with desired options of the form -DOPTION=VALUE
  32. By default this will create the usual Makefile build system, but CMake can
  33. also produce Eclipse or KDevelop project files. See 'cmake --help' to see
  34. what "generators" are available in your environment, selected via '-G'.
  35. For example:
  36. cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebugInfo
  37. - Assuming using the default Makefile output from cmake, run 'make' to
  38. build, and then 'make install' if you wish to install.
  39. ** Mac OS X Compilation **
  40. - Download/install CMake from www.cmake.org or package manager
  41. CMake is like autoconf in that it will create build scripts which are then
  42. used for the actual compilation
  43. - List available build systems by running 'cmake' in the Bullet root folder
  44. - Create a build system using the -G option for example:
  45. cmake . -G Xcode
  46. cmake . -G "Unix Makefiles"
  47. - There are some options for cmake builds:
  48. BUILD_SHARED_LIBS: default 'OFF', set to 'ON' to build .dylib libraries
  49. BUILD_EXTRAS: default 'ON', compiles additional libraries in 'Extras'
  50. BUILD_DEMOS: default 'ON', compiles applications found in 'Demos'
  51. CMAKE_INSTALL_PREFIX: default '/usr/local', the installation path.
  52. CMAKE_INSTALL_NAME_DIR: if you install outside a standard ld search
  53. path, then you should set this to the installation lib/framework path.
  54. CMAKE_OSX_ARCHITECTURES: defaults to the native architecture, but can be
  55. set to a semicolon separated list for fat binaries, e.g. ppc;i386;x86_64
  56. CMAKE_BUILD_TYPE: default 'Release', can include debug symbols with
  57. either 'Debug' or 'RelWithDebInfo'.
  58. To build framework bundles:
  59. FRAMEWORK: default 'OFF', also requires 'BUILD_SHARED_LIBS' set ON
  60. If both FRAMEWORK and BUILD_SHARED_LIBS are set, will create
  61. OS X style Framework Bundles which can be placed in
  62. linked via the -framework gcc argument or drag into Xcode projects.
  63. (If not framework, then UNIX style 'include' and 'lib' will be produced)
  64. Other options may be discovered by 'cmake --help-variable-list' and
  65. 'cmake --help-variable OPTION'
  66. - Run 'cmake' with desired options of the form -DOPTION=VALUE
  67. By default this will create the usual Makefile build system, but CMake can
  68. also produce Eclipse or KDevelop project files. See 'cmake --help' to see
  69. what "generators" are available in your environment, selected via '-G'.
  70. For example:
  71. cmake -DBUILD_SHARED_LIBS=ON -DFRAMEWORK=ON \
  72. -DCMAKE_INSTALL_PREFIX=/Library/Frameworks \
  73. -DCMAKE_INSTALL_NAME_DIR=/Library/Frameworks \
  74. -DCMAKE_OSX_ARCHITECTURES='ppc;i386;x86_64' \
  75. -DCMAKE_BUILD_TYPE=RelWithDebugInfo
  76. - Assuming using the default Makefile output from cmake, run 'make' to build
  77. and then 'make install'.
  78. ** Alternative Mac OS X and Linux via autoconf/make **
  79. - at the command line:
  80. ./autogen.sh
  81. ./configure
  82. make
  83. ** For more help, visit http://www.bulletphysics.org **