INSTALL.md 1.05 KB
Newer Older
1
2
3
4
# Compile and Install

## Dependencies
 - maven 
5
6
 - java (>=9)
 
7
### Centos 8
8
9
``` yum install -y maven java-latest-openjdk-devel ```

10
Update to the most recent version of JAVA
11
``` sudo /sbin/alternatives --config java_sdk_openjdk ```
12
13
14
15
16
17

## Instructions
Download the version:
```
git clone -b v1.1 --depth 1 https://code.ill.fr/cameo/cameo.git
```
18
19
20

### Option1: maven+cmake
Compile:
21
```
22
23
24
cd cameo/
cmake -S . -B build/ -D<OPTION>
cmake --build build/
25
```
26
27
28
29
30
31
Possible options are:
 - CMAKE_INSTALL_PREFIX=<your_chosen_install_basepath>: to install in a non-standard directory
 - CAMEO_API_CPP=ON: to build and install the C++ API
 - CAMEO_API_PYTHON=ON: to build and install the Python API
 
Install:
32
```
33
sudo cmake --build . --target install
34
```
35
36
### Option2: cmake + cpack = DEB package
It is also possible to build and create Debian packages. In this case, please use the build_and_package.sh script.
37
```
38
./build_and_package.sh <build_directory>
39
```
40
41
42
The script provides the following .deb packages located in <build_directory>/packages/
They can be installed using package manager.