... | ... | @@ -9,47 +9,54 @@ The first option is to build these packages from source but it is a PITA. One ot |
|
|
|
|
|
If you don't have conda installed, get [Miniconda from here](https://conda.io/miniconda.html) and install it with:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
bash Miniconda3-latest-Linux-x86_64.sh
|
|
|
```
|
|
|
|
|
|
A good practice would be not to pollute the base environment and work in a dedicated `lima` environment:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
conda create -n lima python=2.7
|
|
|
source activate lima
|
|
|
```
|
|
|
|
|
|
Then install the build tools:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
conda install cmake gxx_linux-64
|
|
|
```
|
|
|
|
|
|
You need to leave the conda environment and enter again so that the environment needed by GXX is updated:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
source deactivate
|
|
|
source activate lima
|
|
|
```
|
|
|
|
|
|
Finally, install the dependencies with conda:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
conda install numpy sip=4.18* gsl=2.2* lz4-c=1.8* hdf5=1.10*
|
|
|
```
|
|
|
|
|
|
And you are good to go!
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
git clone https://gitlab.esrf.fr/limagroup/lima.git
|
|
|
cmake -DCMAKE_FIND_ROOT_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DPYTHON_SITE_PACKAGES_DIR=$CONDA_PREFIX/<Python site package location> .
|
|
|
make -j24
|
|
|
make install
|
|
|
```
|
|
|
|
|
|
or if you want the fully automated version:
|
|
|
This will compile a basic LImA, but you can add more options. To build a fully loaded LImA use:
|
|
|
|
|
|
```shell
|
|
|
cmake -Bbuild -H. -DLIMA_BUILD_SUBMODULES=0 -DLIMA_ENABLE_PYTHON=1 -DLIMA_ENABLE_TESTS=1 -DLIMA_ENABLE_CONFIG=1 -DLIMA_ENABLE_TIFF=1 -DLIMA_ENABLE_HDF5=1 -DLIMA_ENABLE_HDF5_BS=1 -DLIMA_ENABLE_EDFGZ=1 -DLIMA_ENABLE_EDFLZ4=1 -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DPYTHON_SITE_PACKAGES_DIR=$CONDA_PREFIX/<Python site package location> -DCMAKE_FIND_ROOT_PATH=$CONDA_PREFIX
|
|
|
cmake --build build --target install
|
|
|
```
|
|
|
|
|
|
or if you want the fully automated version:
|
|
|
|
|
|
```shell
|
|
|
./install.sh --find-root-path=$CONDA_PREFIX
|
|
|
``` |
|
|
\ No newline at end of file |