1 | /*! |
---|
2 | \page install BDM Use - Installation |
---|
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: |
---|
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 | |
---|
11 | \section in_bin Binaries for BDMtoolbox |
---|
12 | Binaries for the matlab BDMtoolbox are available only for windows (win32) platform, compiled against matlab 7.1 for compatibility. |
---|
13 | |
---|
14 | Installation: |
---|
15 | \li svn checkout http://mys.utia.cas.cz:1800/svn/mixpp/applications/bdmtoolbox/ into your local directory of your choice (this will be denoted \<toolbox_dir\>) |
---|
16 | \li open matlab and type: \>\> addpath \<toolbox_dir\>/mex; addpath \<toolbox_dir\>/mexw32 |
---|
17 | \li the toolbox is ready to be used, test it e.g. by: \>\> cd tutorial/userguide; pdfds_example |
---|
18 | \li if no error is given, the toolbox is installed correctly |
---|
19 | \li proceed to http://mys.utia.cas.cz:1800/trac/bdm/doxygen/pages.html to learn how to use it |
---|
20 | |
---|
21 | \section src Source code |
---|
22 | |
---|
23 | is available from svn repository: |
---|
24 | http://mys.utia.cas.cz:1800/svn/mixpp using guest/guest as login/password. |
---|
25 | |
---|
26 | For download use an appropriate SVN client http://subversion.tigris.org/links.html#clients |
---|
27 | |
---|
28 | Download the source files to any directory of your choise, this directoory will be refered to as \<bdm_dir\>. |
---|
29 | |
---|
30 | \subsection pre Prerequisities |
---|
31 | |
---|
32 | You need to have the following tools available on your system: |
---|
33 | \li working C++ compiler, e.g. gcc on Linux, or Visual Studio on windows |
---|
34 | \li CMake, a cross-platform build system, http://www.cmake.org |
---|
35 | |
---|
36 | \section lin Linux |
---|
37 | |
---|
38 | All prerequisities are available as binary packages for most distribution. E.g. for debian-based distributions, use |
---|
39 | \code |
---|
40 | apt-get install g++ cmake |
---|
41 | \endcode |
---|
42 | |
---|
43 | Compile the BDM library and its applications using |
---|
44 | \code |
---|
45 | $ cd <bdm_dir>/library/ |
---|
46 | $ cmake . |
---|
47 | $ make |
---|
48 | \endcode |
---|
49 | |
---|
50 | |
---|
51 | \section win Windows |
---|
52 | |
---|
53 | The following approach was tested on the Microsoft Visual Studio 9. |
---|
54 | |
---|
55 | Make sure you have cmake installed. |
---|
56 | |
---|
57 | We are including latest stable code from IT++ which requires a implementation of BLAS and LAPACK routines. |
---|
58 | The most convenient library is ACML which can be downloaded from AMD. |
---|
59 | |
---|
60 | For convenience of the beginners, DLLS of the ACML and lib+include files for ITPP and ACML are |
---|
61 | provided at: http://staff.utia.cas.cz/smidl/Public/mixpp_win32lib.zip |
---|
62 | If you want to use them copy the content of the zip file to \<bdm_dir\>/library/system/win32/ directory and |
---|
63 | make sure to set your PATH environment variable: |
---|
64 | \code |
---|
65 | Path = %PATH%; <bdm_dir>\library\system\win32\dll |
---|
66 | \endcode |
---|
67 | |
---|
68 | Be sure to set system variable globally, i.e., through the dialog box "System Properties", |
---|
69 | tab "Advanced" and button "Environment Variables". Otherwise you will not be able to run |
---|
70 | any programs. |
---|
71 | |
---|
72 | |
---|
73 | Compilation of BDM: |
---|
74 | |
---|
75 | * When everything is set-up, make a copy of library\system\win32\run_cmake.bat, edit it |
---|
76 | to reflect your environment (i.e. change paths to cmake and your C++ target environment) |
---|
77 | and run it. |
---|
78 | |
---|
79 | * Alternatively, you can run CMake GUI and specify address to your \<bdm_dir\> |
---|
80 | |
---|
81 | |
---|
82 | * It should generate build files for your compiler in the main BDM |
---|
83 | directory |
---|
84 | |
---|
85 | For more comfortable work with Subversion, we recommend to install also AnkhSVN - |
---|
86 | a Visual Studio plug-in that perfectly integrates Subversion into the GUI, see http://ankhsvn.open.collab.net/ |
---|
87 | |
---|
88 | |
---|
89 | \section mac Mac OS X |
---|
90 | |
---|
91 | All prerequisities for Mac OS X are avaliable, make sure you have them installed. |
---|
92 | |
---|
93 | Right now, Cmake configuration is hard-coded for one testing machine. Look for the paths in SetBDMEnv.cmake and correct them. |
---|
94 | Open CMake GUI, clisk Configure followed by Create. |
---|
95 | Configuration files for your favourite build environment should be created in the BDM directory. |
---|
96 | |
---|
97 | */ |
---|