mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
README for compilation
This commit is contained in:
parent
0807e130e4
commit
59d8584a9e
44
README.md
Normal file
44
README.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# slsDetector package
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Get source
|
||||||
|
The source code is organised into several submodules, and the top level module is
|
||||||
|
sls_detectors_package.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ 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
|
||||||
|
```
|
||||||
|
export QTDIR=/usr/local/Trolltech/
|
||||||
|
export QWTDIR=/usr/local/qwt-6.0.1/
|
||||||
|
```
|
||||||
|
If either of them does not exist, the GUI client will not be built.
|
||||||
|
|
||||||
|
The calibration wizards require ROOT
|
||||||
|
```
|
||||||
|
export ROOTSYS=/usr/local/root-5.34
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compile
|
||||||
|
Use cmake to create out-of-source builds, by creating an build folder parallel to source directory.
|
||||||
|
```
|
||||||
|
$ cd ..
|
||||||
|
$ mkdir sls_detectors_package-build
|
||||||
|
$ cd sls_detectors_package-build
|
||||||
|
$ cmake ../sls_detectors_package
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
The libraries and executables will be found at `bin` directory
|
||||||
|
```
|
||||||
|
$ ls bin/
|
||||||
|
gui_client libSlsDetector.a libSlsDetector.so libSlsReceiver.a libSlsReceiver.so
|
||||||
|
sls_detector_acquire sls_detector_get slsDetectorGui sls_detector_help sls_detector_put slsReceiver
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user