mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
WIP
This commit is contained in:
parent
0947cefe08
commit
5e92c5b67e
39
README.md
39
README.md
@ -18,29 +18,21 @@ conda install slsdet=2020.03.02.dev0 #developer version from 3 March 2020
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Source code
|
### Source code
|
||||||
One can also obtain the source code from this repository and compile while realizing the setup dependencies as required.
|
One can also obtain the source code from this repository and compile.
|
||||||
```
|
```
|
||||||
git clone https://github.com/slsdetectorgroup/slsDetectorPackage.git
|
git clone https://github.com/slsdetectorgroup/slsDetectorPackage.git
|
||||||
|
|
||||||
```
|
```
|
||||||
#### Setup dependencies
|
#### Dependencies
|
||||||
* Gui Client <br>
|
* Lib: ZeroMQ 4
|
||||||
Requirements: Qt 4.8 and Qwt 6.0
|
* Gui Client: Qt 4.8 and Qwt 6.0
|
||||||
```
|
* Calibration wizards and ctbGUI: ROOT
|
||||||
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.
|
|
||||||
|
|
||||||
* Advanced user Calibration wizards<br>
|
|
||||||
Requirements: ROOT
|
|
||||||
```
|
|
||||||
export ROOTSYS=/usr/local/root-5.34
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Compilation
|
#### Compilation
|
||||||
|
|
||||||
Compiling can be done in two ways.
|
Compiling can be done in two ways. Either with the convenience script
|
||||||
|
cmk.sh or directly with cmake for more control.
|
||||||
|
|
||||||
**1. Compile using script cmk.sh**<br>
|
**1. Compile using script cmk.sh**<br>
|
||||||
|
|
||||||
@ -83,22 +75,17 @@ For rebuilding only certain sections<br>
|
|||||||
|
|
||||||
|
|
||||||
**2. Compile without script**<br>
|
**2. Compile without script**<br>
|
||||||
Use cmake to create out-of-source builds, by creating a build folder parallel to source directory.
|
Use cmake to create out-of-source builds, by creating a build folder parallel to source directory. This would crete a debug build with address sanitizers.
|
||||||
```
|
```
|
||||||
$ cd ..
|
$ mkdir build
|
||||||
$ mkdir slsDetectorPackage-build
|
$ cd build
|
||||||
$ cd slsDetectorPackage-build
|
$ cmake ../slsDetectorPackage -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_SANITIZER=ON
|
||||||
$ cmake ../slsDetectorPackage -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_HDF5=OFF
|
|
||||||
$ make
|
$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the following as an example to compile statically and using specific hdf5 folder
|
After compiling, the libraries and executable will be found at `bin` directory
|
||||||
```
|
|
||||||
$ HDF5_ROOT=/opt/hdf5v1.10.0 cmake ../slsDetectorPackage -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_HDF5=ON
|
|
||||||
```
|
|
||||||
After compiling, the libraries and executables will be found at `bin` directory
|
|
||||||
```
|
```
|
||||||
$ ls bin/
|
$ ls bin/
|
||||||
gui_client libSlsDetector.a libSlsDetector.so libSlsReceiver.a libSlsReceiver.so
|
libSlsDetector.a libSlsDetector.so libSlsReceiver.a libSlsReceiver.so
|
||||||
sls_detector_acquire sls_detector_get slsDetectorGui sls_detector_help sls_detector_put slsReceiver slsMultiReceiver
|
sls_detector_acquire sls_detector_get slsDetectorGui sls_detector_help sls_detector_put slsReceiver slsMultiReceiver
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user