You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. This document is outdated. While some informations in this document may still be relevant, you should exert caution while reading it.
  2. You can find an up to date version of this document in the meta repo, see https://gitlab.inria.fr/openvibe/meta/blob/master/README.md
  3. *========================================*
  4. |OpenViBE| |INSTALL|
  5. *========================================*
  6. |Introduction|
  7. This document explains how to build the OpenViBE platform from the sources.
  8. More up-to-date information may be available at
  9. http://openvibe.inria.fr/build-instructions/
  10. |Repository.organisation|
  11. Please refer to the README file to have information on the repository
  12. organisation.
  13. |Build.target|
  14. Windows: OpenViBE should compile on x86 / x86_64 architecture running Microsoft
  15. Windows 2k/XP/Vista/7 with Visual C++ 2008 or 2010 Express Edition (take care
  16. of having the up-to-date platform SDK from Microsoft installed).
  17. Linux: OpenViBE should compile on x86 / x86_64 architectures running Linux with gcc 4.*
  18. Please consider that trying to compile OpenViBE on other hardware/OS/compiler
  19. is experimental and has not been tested. If you wish to try and get OpenViBE
  20. to run on other hardware/OS/compilers, your efforts are welcome
  21. but you should not expect to get support on the short term.
  22. |Building.on.Windows|
  23. 1. Short story:
  24. For command line -style building using NMake, double-click:
  25. # win32-install_dependencies
  26. # win32-build
  27. For IDE style building using Visual Studio, double-click:
  28. # win32-install_dependencies
  29. # win32-generate-vcproj
  30. # win32-launch-vc
  31. You may have to tweak the last script to find your particular version of Visual Studio.
  32. The built openvibe should now be in "dist\" folder. If it didn't work, read the longer description for hints.
  33. |Detailed.building.instructions.for.Windows|
  34. 1. Install dependencies
  35. In order to build the software, you must install several dependencies.
  36. This may be done using the provided installation scripts which will automatically
  37. set up your environment. Run the following *inside* the scripts/ directory:
  38. <win32-install_dependencies> installs the dependencies under Windows.
  39. The Windows installer uses prebuilt packages and is quite fast.
  40. 2. Prepare the environment
  41. The 'scripts' directory contains the necessary files to build the whole platform and plugins.
  42. The <win32-init_env_command> sets the build environment. You may have to tune this
  43. and other scripts by hand due to installation specifics such as Visual Studio paths.
  44. 3a. Build using NMake
  45. If you want to build all projects without an IDE, you can use the <win32-build> script.
  46. The script calls <win32-init_env_command>, which must be able to set the development
  47. environment correctly.
  48. 3b. Build using Visual Studio
  49. Use <win32-generate-vc-proj> in scripts\ directory to generate a Visual Studio
  50. solution to "local-tmp\visual\". The script calls <win32-init_env_command>,
  51. which must be able to set up the development environment correctly.
  52. Script <win32-launch-vc> can then be used to launch Visual Studio 2010 Express
  53. while taking care that all the environment variables have been set. To use other
  54. version of Visual Studio, change the path on the last line of the script to
  55. point to your version.
  56. Note the following when using Visual Studio with OpenViBE:
  57. - When launching Visual Studio, the OpenViBE environment variables must have
  58. already been set (as done by <win32-launch-vc>)
  59. - Always compile the INSTALL target to get everything copied under "dist\". This
  60. is required so that the compiled OpenViBE applications can find the DLL files.
  61. - When debugging an OpenViBE executable in Visual Studio, you may have to set the
  62. correct Properties->Debugging->Working Directory by finding "dist\bin\" with browse.
  63. - All Visual Studio projects are created by CMake, so any changes to the project
  64. configurations should be made to the CMake scripts.
  65. - If you want to add any files to the build tree, delete "local-tmp\visual\CMakeCache.txt"
  66. and run the <win32-generate-vc-proj> again.
  67. 4. If you made it this far, congratulations : you should now have OpenViBE working,
  68. and the freshly built OpenViBE in "dist\".
  69. |Building.on.Linux|
  70. 1. Short story
  71. # cd scripts
  72. # ./linux-install_dependencies
  73. # ./linux-build
  74. The built OpenViBE should be in "dist/". If not, please read the longer description for hints.
  75. |Detailed.building.instructions.on.Linux|
  76. 1. Install dependencies
  77. In order to build the software, you must install several dependencies. This may be
  78. done using a provided script. Run the following *inside* the scripts/ directory:
  79. <linux-install_dependencies> installs dependencies under Linux.
  80. The Linux installer processes a few source packages and builds them from scratch. Most
  81. of the packages are installed from your Linux distribution. Hence this script requires
  82. root access. If you don't have one, please ask your IT support to install the OpenViBE
  83. dependencies for you as listed in the script.
  84. 2. Build the platform
  85. To build OpenViBE, you can use the <linux-build> script while in the scripts/ directory.
  86. Finally, the <linux-test> script will launch the most interesting applications for you.
  87. If you want to build only some specific subtree, first build the whole OpenViBE
  88. and then change to the appropriate subtree under local-tmp/. There you can call
  89. "make" and "make install" to build only that component.
  90. 3. If you made it this far, congratulations : you should now have OpenViBE freshly
  91. built to "dist/".
  92. |Elementary Linux packaging|
  93. To build an elementary Debian/Ubuntu/Mint package from the official tarball (>= 0.16.0)
  94. using debhelper, do the following:
  95. # mv openvibe-X.Y.Z.tar.gz openvibe_X.Y.Z.orig.tar.gz
  96. # tar xzvf openvibe_X.Y.Z.orig.tar.gz
  97. # cd openvibe-X.Y.Z
  98. # debuild -uc -us
  99. |Contribution.rules|
  100. Please see
  101. http://openvibe.inria.fr/contribution-rules/
  102. |End.of.file|
  103. vim:tw=78:ts=8:ft=help:norl: