root/library/doc/tutorial/000install.dox @ 944

Revision 944, 4.0 kB (checked in by smidl, 14 years ago)

Doc + new examples

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