CAEN MCA  0.99.10
SDK for Hexagon
INSTALL.md
Go to the documentation of this file.
1 # Installation{#install}
2 \tableofcontents
3 
4 Here you may find the instructions to install the library on your environment.
5 
6 # Linux
7 The library is distributed as *libCAENMCA.so*.
8 
9 ## Requirements
10 Supported architectures:
11 * x86
12 * x86-64
13 * armhf (gnueabihf)
14 
15 Compiler:
16 * **gcc** or **clang** (any version supporting C99)
17 
18 Additional libraries required:
19 * **libxml2** (version >= 2.6)
20 * **libgssdp-1.0** (version >= 0.2)
21 
22 To install the dependencies on the main Linux distributions:
23 
24 **Debian/Ubuntu** and derivatives:
25 ``` bash
26 $ sudo apt install gcc make pkg-config
27 $ sudo apt install libxml2-dev libgssdp-1.0-dev
28 ```
29 
30 **RHEL/CentOS/Fedora/SL** and derivatives:
31 ``` bash
32 $ sudo yum install gcc make pkgconf-pkg-config
33 $ sudo yum install libxml2-devel gssdp-devel
34 ```
35 
36 **Arch/Manjaro** and derivatives:
37 ``` bash
38 $ sudo pacman -S gcc make pkgconf
39 $ sudo pacman -S libxml2 gssdp
40 ```
41 ## Install
42 When all the dependencies are satisfied, extract the source code from the compressed archive,
43 enter the source folder (`libcaenmca-X.Y.Z`), and there compile the library executing the
44 usual commands:
45 
46 ``` bash
47 $ tar xfvz libcaenmca-X.Y.Z.tar.gz
48 $ cd libcaenmca-X.Y.Z
49 $ ./configure [--prefix=<installdir>]
50 $ make
51 $ sudo make install
52 ```
53 
54 \note If not set, the default `<installdir>` is set to `/usr`.
55 
56 This will install both library and headers in the system folders.
57 
58 # Windows
59 The library is distributed as *CAENMCA.dll* (and the import library *CAENMCA.lib*).
60 
61 ## Requirements
62 Supported architectures:
63 * x86
64 * x64
65 
66 Minimum platform toolset: **Visual Studio 2015** (14.0).
67 
68 The library requires **libxml2**, that is included in the installer. No additional library is required.
69 
70 ## Install
71 Just use the installer provided.
72 
73 \note The default install directory is set to `C:\Program Files\CAEN\Digitizers\CAENMCA`.