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

Revision 782, 4.2 kB (checked in by smidl, 14 years ago)

doc ordering

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 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
23is available from svn repository:
24http://mys.utia.cas.cz:1800/svn/mixpp using guest/guest as login/password.
25
26For download use an appropriate SVN client http://subversion.tigris.org/links.html#clients
27
28Download the source files to any directory of your choise, this directoory will be refered to as \<bdm_dir\>.
29
30\subsection pre Prerequisities
31
32You 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\li ITPP library, http://itpp.sourceforge.net/ which is a part of all major linux distributions, for its installation on Windows, see Section Windows.
36 
37\section lin Linux
38
39All prerequisities are available as binary packages for most distribution. E.g. for debian-based distributions, use
40\code
41apt-get install g++ cmake libitpp-dev
42\endcode
43
44\note If you want to use mex files, you need to build IT++ from sources using the classi configure;make;make install.
45The necessary flags for configure for mex compilation are in file linux/configure_itpp.
46
47Compile the BDM library and its applications using
48\code
49$ cd <bdm_dir>/library/
50$ cmake .
51$ make
52\endcode
53
54
55\section win Windows
56
57The following approach was tested on the Microsoft Visual Studio 9.
58
59Make sure you have cmake installed.
60
61Expert users are advised to download and compile their ITPP version following a guide on :
62http://itpp.sourceforge.net/current/installation.html
63
64For convenience of the beginners, DLLS of the ACML and lib+include files for ITPP and ACML are
65provided at: http://staff.utia.cas.cz/smidl/Public/mixpp_win32lib.zip
66If you want to use them copy the content of the zip file to \<bdm_dir\>/library/system/win32/ directory and
67make sure to set your PATH environment variable:
68\code
69 Path = %PATH%; <bdm_dir>\library\system\win32\dll
70\endcode
71
72Be sure to set system variable globally, i.e., through the dialog box "System Properties",
73tab "Advanced" and button "Environment Variables". Otherwise you will not be able to run
74any programs.
75
76
77Compilation of BDM:
78
79 * When everything is set-up, make a copy of library\system\win32\run_cmake.bat, edit it
80  to reflect your environment (i.e. change paths to cmake and your C++ target environment)
81  and run it.
82
83 * It should generate build files for your compiler in the main BDM
84  directory
85
86For more comfortable work with Subversion, we recommend to install also AnkhSVN -
87a Visual Studio plug-in that perfectly integrates Subversion into the GUI, see http://ankhsvn.open.collab.net/
88
89
90\section mac Mac OS X
91
92All prerequisities for Mac OS X are avaliable except for ITPP, make sure you have them installed.
93
94However, its compilation is straightforward.
95
96 1. Download the latest stable release from http://itpp.sourceforge.net
97 2. Compile it using script system/mac/itpp_compile.sh
98
99The default cmake configuration is looking for itpp in directory mac/itpp, make sure you have symlinks to this directory.
100
101If itpp compilation is successfull, you can run Cmake. Fill in the paths to your BDM directory, run Configure followed by Create.
102Configuration files for your favourite build environment should be created in the BDM directory.
103
104*/
Note: See TracBrowser for help on using the browser.