INSTALL 5.53 KB
Newer Older
Jussi Lindgren's avatar
Jussi Lindgren committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158

         *========================================*
                     |OpenViBE| |INSTALL|
         *========================================*

|Introduction|

This document explains how to build the OpenViBE platform from the sources. 
More up-to-date information may be available at 

http://openvibe.inria.fr/build-instructions/

|Repository.organisation|

Please refer to the README file to have information on the repository
organisation.

|Build.target|

Windows: OpenViBE should compile on x86 / x86_64 architecture running Microsoft 
Windows 2k/XP/Vista/7 with Visual C++ 2008 or 2010 Express Edition (take care 
of having the up-to-date platform SDK from Microsoft installed).

Linux: OpenViBE should compile on x86 / x86_64 architectures running Linux with gcc 4.*

Please consider that trying to compile OpenViBE on other hardware/OS/compiler
is experimental and has not been tested. If you wish to try and get OpenViBE 
to run on other hardware/OS/compilers, your efforts are welcome
but you should not expect to get support on the short term.

|Building.on.Windows|

1. Short story:

For command line -style building using NMake, double-click:

# win32-install_dependencies
# win32-build

For IDE style building using Visual Studio, double-click:

# win32-install_dependencies
# win32-generate-vcproj
# win32-launch-vc

You may have to tweak the last script to find your particular version of Visual Studio.

The built openvibe should now be in "dist\" folder. If it didn't work, read the longer description for hints.

|Detailed.building.instructions.for.Windows|

1. Install dependencies

In order to build the software, you must install several dependencies.
This may be done using the provided installation scripts which will automatically 
set up your environment. Run the following *inside* the scripts/ directory:

<win32-install_dependencies> installs the dependencies under Windows.

The Windows installer uses prebuilt packages and is quite fast.

2. Prepare the environment

The 'scripts' directory contains the necessary files to build the whole platform and plugins.
The <win32-init_env_command> sets the build environment.  You may have to tune this 
and other scripts by hand due to installation specifics such as Visual Studio paths.

3a. Build using NMake

If you want to build all projects without an IDE, you can use the <win32-build> script. 
The script calls <win32-init_env_command>, which must be able to set the development
environment correctly.

3b. Build using Visual Studio

Use <win32-generate-vc-proj> in scripts\ directory to generate a Visual Studio
solution to "local-tmp\visual\". The script calls <win32-init_env_command>, 
which must be able to set up the development environment correctly. 

Script <win32-launch-vc> can then be used to launch Visual Studio 2010 Express 
while taking care that all the environment variables have been set. To use other
version of Visual Studio, change the path on the last line of the script to 
point to your version.

Note the following when using Visual Studio with OpenViBE:

- When launching Visual Studio, the OpenViBE environment variables must have
already been set (as done by <win32-launch-vc>)
- Always compile the INSTALL target to get everything copied under "dist\". This 
is required so that the compiled OpenViBE applications can find the DLL files.
- When debugging an OpenViBE executable in Visual Studio, you may have to set the
correct Properties->Debugging->Working Directory by finding "dist\bin\" with browse.
- All Visual Studio projects are created by CMake, so any changes to the project 
configurations should be made to the CMake scripts.
- If you want to add any files to the build tree, delete "local-tmp\visual\CMakeCache.txt"
and run the <win32-generate-vc-proj> again.

4. If you made it this far, congratulations : you should now have OpenViBE working,
and the freshly built OpenViBE in "dist\".


|Building.on.Linux|

1. Short story

# cd scripts
# ./linux-install_dependencies
# ./linux-build

The built OpenViBE should be in "dist/". If not, please read the longer description for hints.

|Detailed.building.instructions.on.Linux|

1. Install dependencies

In order to build the software, you must install several dependencies. This may be 
done using a provided script. Run the following *inside* the scripts/ directory:

<linux-install_dependencies> installs dependencies under Linux.

The Linux installer processes a few source packages and builds them from scratch. Most
of the packages are installed from your Linux distribution. Hence this script requires 
root access. If you don't have one, please ask your IT support to install the OpenViBE 
dependencies for you as listed in the script.

2. Build the platform

To build OpenViBE, you can use the <linux-build> script while in the scripts/ directory. 

Finally, the <linux-test> script will launch the most interesting applications for you.

If you want to build only some specific subtree, first build the whole OpenViBE 
and then change to the appropriate subtree under local-tmp/. There you can call 
"make" and "make install" to build only that component.

3. If you made it this far, congratulations : you should now have OpenViBE freshly 
built to "dist/".

|Elementary Linux packaging|

To build an elementary Debian/Ubuntu/Mint package from the official tarball (>= 0.16.0) 
using debhelper, do the following:

# mv openvibe-X.Y.Z.tar.gz openvibe_X.Y.Z.orig.tar.gz
# tar xzvf openvibe_X.Y.Z.orig.tar.gz
# cd openvibe-X.Y.Z
# debuild -uc -us

|Contribution.rules|

Please see

http://openvibe.inria.fr/contribution-rules/


|End.of.file|

 vim:tw=78:ts=8:ft=help:norl: