root/library/doc/tutorial/00install.dox @ 711

Revision 711, 3.7 kB (checked in by mido, 15 years ago)

definitivne odstraneno epdf2mpdf a mepdf, rozpravano zacleneni testu mmixu pod pdf_harness

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