2018-02-09 12:15:45 +01:00
2016-09-01 14:42:47 +02:00
2017-08-25 12:08:14 +02:00
2018-02-09 11:25:21 +01:00
2017-11-16 12:30:41 +01:00
2017-03-24 07:59:14 +01:00
2018-02-08 10:54:07 +01:00
2017-12-12 09:05:39 +01:00
2018-01-25 15:16:56 +01:00
2016-07-06 10:33:17 +02:00
2012-11-22 08:29:19 +00:00
2018-02-09 12:15:45 +01:00
2018-02-09 11:08:33 +01:00

slsDetector package

Installation of binaries via the conda package

Documentation to obtain the binaries is available here.

Installation of source code and compiling

Setup dependencies for GUI client and calibration wizards

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 using script cmk.sh

Usage: [-c] [-b] [-h] [-d ] [-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 ..
    $ mkdir slsDetectorPackage-build
    $ cd slsDetectorPackage-build
    $ cmake ../slsDetectorPackage -DUSE_TEXTCLIENT=ON -DUSE_RECEIVER=ON -DUSE_GUI=OFF -DCMAKE_BUILD_TYPE=Debug -DUSE_HDF5=OFF 
    $ make

Use the following as an example to compile statically and using specific hdf5 folder

    $ 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

    $ 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
Description
Mirror of our github project
Readme 277 MiB
Languages
C++ 63.2%
C 25.3%
Python 8%
Shell 1.9%
CMake 1.3%
Other 0.3%