mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 09:30:02 +02:00
updated Readme.md
This commit is contained in:
parent
5c23fd6502
commit
298663f143
63
README.md
63
README.md
@ -1,19 +1,12 @@
|
|||||||
# slsDetector package
|
# slsDetector package
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation of binaries via the conda package
|
||||||
|
Documentation to obtain the binaries is available [here.](https://github.com/slsdetectorgroup/sls_detector_software)
|
||||||
|
|
||||||
### Get source
|
## Installation of source code and compiling
|
||||||
The source code is organised into several submodules, and the top level module is
|
|
||||||
sls_detectors_package.
|
|
||||||
|
|
||||||
```
|
### Setup dependencies for GUI client and calibration wizards
|
||||||
$ git clone git@git.psi.ch:sls_detectors_software/sls_detectors_package.git
|
|
||||||
$ cd sls_detectors_package
|
|
||||||
$ ./checkout.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
### Setup dependencies
|
|
||||||
The GUI client requires Qt 4.8 and Qwt 6.0
|
The GUI client requires Qt 4.8 and Qwt 6.0
|
||||||
```
|
```
|
||||||
export QTDIR=/usr/local/Trolltech/
|
export QTDIR=/usr/local/Trolltech/
|
||||||
@ -26,19 +19,55 @@ The calibration wizards require ROOT
|
|||||||
export ROOTSYS=/usr/local/root-5.34
|
export ROOTSYS=/usr/local/root-5.34
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compile
|
### Compile using script cmk.sh
|
||||||
Use cmake to create out-of-source builds, by creating an build folder parallel to source directory.
|
Usage: [-c] [-b] [-h] [-d <HDF5 directory>] [-j]
|
||||||
|
-[no option]: only make
|
||||||
|
-c: Clean
|
||||||
|
-b: Builds/Rebuilds CMake files normal mode
|
||||||
|
-h: Builds/Rebuilds Cmake files with HDF5 package
|
||||||
|
-d: HDF5 Custom Directory
|
||||||
|
-t: Build/Rebuilds only text client
|
||||||
|
-r: Build/Rebuilds only receiver
|
||||||
|
-g: Build/Rebuilds only gui
|
||||||
|
-j: Number of threads to compile through
|
||||||
|
|
||||||
|
For only make:
|
||||||
|
./cmk.sh
|
||||||
|
|
||||||
|
For make clean;make:
|
||||||
|
./cmk.sh -c
|
||||||
|
|
||||||
|
For using hdf5 without custom dir /blabla:
|
||||||
|
./cmk.sh -h -d /blabla
|
||||||
|
|
||||||
|
For rebuilding cmake without hdf5
|
||||||
|
./cmk.sh -b
|
||||||
|
|
||||||
|
For using multiple cores to compile faster:
|
||||||
|
(all these options work)
|
||||||
|
./cmk.sh -j9
|
||||||
|
./cmk.sh -cj9 #with clean
|
||||||
|
./cmk.sh -hj9 #with hdf5
|
||||||
|
./cmk.sh -j9 -h #with hdf
|
||||||
|
|
||||||
|
For rebuilding only certain sections
|
||||||
|
./cmk.sh -tg #only text client and gui
|
||||||
|
./cmk.sh -r #only receiver
|
||||||
|
|
||||||
|
|
||||||
|
### Compile without script
|
||||||
|
Use cmake to create out-of-source builds, by creating a build folder parallel to source directory.
|
||||||
```
|
```
|
||||||
$ cd ..
|
$ cd ..
|
||||||
$ mkdir sls_detectors_package-build
|
$ mkdir slsDetectorPackage-build
|
||||||
$ cd sls_detectors_package-build
|
$ cd slsDetectorPackage-build
|
||||||
$ cmake ../sls_detectors_package
|
$ cmake ../slsDetectorPackage -DUSE_TEXTCLIENT=ON -DUSE_RECEIVER=ON -DUSE_GUI=OFF -DCMAKE_BUILD_TYPE=Debug -DUSE_HDF5=OFF
|
||||||
$ make
|
$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the following as an example to compile statically and using specific hdf5 folder
|
Use the following as an example to compile statically and using specific hdf5 folder
|
||||||
```
|
```
|
||||||
$ HDF5_ROOT=/opt/hdf5v1.10.0 cmake -DHDF5_USE_STATIC_LIBRARIES=TRUE ../slsDetectorsPackage
|
$ HDF5_ROOT=/opt/hdf5v1.10.0 cmake ../slsDetectorPackage -DUSE_TEXTCLIENT=ON -DUSE_RECEIVER=ON -DUSE_GUI=OFF -DCMAKE_BUILD_TYPE=Debug -DUSE_HDF5=ON
|
||||||
```
|
```
|
||||||
The libraries and executables will be found at `bin` directory
|
The libraries and executables will be found at `bin` directory
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user