[298] | 1 | /*! |
---|
| 2 | \page install How to install BDM |
---|
| 3 | |
---|
| 4 | BDM is written as a multiplatform library, which was tested on Linux, Windows and Mac OSX. |
---|
| 5 | However, installation on each platform is specific. |
---|
| 6 | |
---|
| 7 | BDM comes in two basic versions: |
---|
[302] | 8 | \li \b binary with precompiled executables and matlab mex files that can be configured by external text files |
---|
| 9 | \li \b source \b code that can be compiled into any required form. |
---|
| 10 | Distribution of the binary form is not currently available. It is planned in latter stages of development. |
---|
[298] | 11 | |
---|
| 12 | |
---|
| 13 | \section src Source code |
---|
| 14 | |
---|
| 15 | is available from svn repository: |
---|
| 16 | http://mys.utia.cas.cz:1800/svn/mixpp |
---|
| 17 | |
---|
| 18 | For download use an appropriate SVN client http://subversion.tigris.org/links.html#clients |
---|
| 19 | |
---|
| 20 | \subsection pre Prerequisities |
---|
| 21 | |
---|
| 22 | You need to have the following tools available on your system: |
---|
[302] | 23 | \li working C++ compiler, e.g. gcc on Linux, or Visual Studio on windows |
---|
| 24 | \li CMake, a cross-platform build system, http://www.cmake.org |
---|
| 25 | \li ITPP library, http://itpp.sourceforge.net/ which is a part of all major linux distributions, for its installation on Windows, see Section Windows. |
---|
[298] | 26 | |
---|
[302] | 27 | \section lin Linux |
---|
[298] | 28 | |
---|
| 29 | All prerequisities are available as binary packages for most distribution. E.g. for debian-based distributions, use |
---|
| 30 | \code |
---|
| 31 | apt-get install g++ cmake libitpp-dev |
---|
| 32 | \endcode |
---|
| 33 | |
---|
[305] | 34 | \note If you want to use mex files, you need to build IT++ from sources using the classi configure;make;make install. |
---|
| 35 | The necessary flags for configure for mex compilation are in file linux/configure_itpp. |
---|
| 36 | |
---|
[298] | 37 | Compile the BDM library and its applications using |
---|
| 38 | \code |
---|
| 39 | $ cd directory/with/bdm/sources |
---|
| 40 | $ cmake . |
---|
| 41 | $ make |
---|
| 42 | \endcode |
---|
| 43 | |
---|
| 44 | |
---|
[302] | 45 | \section win Windows |
---|
| 46 | |
---|
[298] | 47 | The following approach was tested on Visual Studio 9, so we recommend to download and install it. |
---|
| 48 | http://www.microsoft.com/express/vc/ |
---|
| 49 | |
---|
| 50 | Make sure you have cmake installed. |
---|
| 51 | |
---|
| 52 | Expert users are advised to download and compile their ITPP version following a guide on : |
---|
| 53 | http://itpp.sourceforge.net/current/installation.html |
---|
| 54 | |
---|
| 55 | For convenience of the beginners, DLLS of the ACML and lib+include files for ITPP and ACML are |
---|
| 56 | provided at: http://staff.utia.cas.cz/smidl/Public/mixpp_win32lib.zip |
---|
| 57 | If you want to use them copy the content of the zip file to win32\ directory and |
---|
| 58 | make sure to set your PATH environment variable: |
---|
| 59 | \code |
---|
[302] | 60 | Path = %PATH%; <bdm_dir>\win32\dll |
---|
| 61 | \endcode |
---|
[298] | 62 | Otherwise you will not be able to run any programs. |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | Compilation of BDM: |
---|
| 66 | |
---|
| 67 | * When everything is set-up, make a copy of win32/run_cmake.bat, edit it |
---|
| 68 | to reflect your environment (i.e. change paths to cmake and your C++ target environment) |
---|
| 69 | and run it. |
---|
| 70 | |
---|
| 71 | * It should generate build files for your compiler in the main BDM |
---|
| 72 | directory |
---|
| 73 | |
---|
[302] | 74 | \section mac Mac OS X |
---|
[298] | 75 | |
---|
[302] | 76 | All prerequisities for Mac OS X are avaliable except for ITPP, make sure you have them installed. |
---|
| 77 | |
---|
| 78 | However, its compilation is straightforward. |
---|
| 79 | |
---|
| 80 | 1. Download the latest stable release from http://itpp.sourceforge.net |
---|
| 81 | 2. Compile it using script mac/itpp_compile.sh |
---|
| 82 | |
---|
| 83 | The default cmake configuration is looking for itpp in directory mac/itpp, make sure you have symlinks to this directory. |
---|
| 84 | |
---|
| 85 | If itpp compilation is successfull, you can run Cmake. Fill in the paths to your BDM directory, run Configure followed by Create. |
---|
| 86 | Configuration files for your favourite build environment should be created in the BDM directory. |
---|
| 87 | |
---|
[298] | 88 | */ |
---|