Erik Frojdh c6c3a68520 WIP
2020-03-03 10:08:20 +01:00
2019-08-07 11:21:07 +02:00
2020-03-02 13:12:46 +01:00
2020-02-17 17:43:14 +01:00
2020-02-03 14:57:37 +01:00
2020-02-13 14:50:23 +01:00
2020-02-18 18:26:11 +01:00
2020-03-02 13:12:46 +01:00
2020-02-17 17:43:14 +01:00
2019-04-12 10:53:09 +02:00
2019-04-12 10:53:09 +02:00
2020-02-04 08:57:35 +01:00
2019-04-12 10:53:09 +02:00
2019-11-27 17:55:50 +01:00
2020-02-17 17:43:14 +01:00
2019-06-25 11:20:31 +02:00
2020-03-02 13:12:46 +01:00
2019-09-30 14:46:25 +02:00
WIP
2020-03-03 10:08:20 +01:00
2019-09-02 19:27:27 +02:00

Documentation

Detailed documentation can be found on the official site.

Binaries

Binaries for the slsDetectorPackage are available through conda.

#Add conda channels
conda config --add channels conda-forge
conda config --add channels slsdetectorgroup

conda install slsdetlib   #only shared lib and command line
conda install slsdet      #python bindings (includes slsdetlib)
conda install slsdetgui   #gui (includes qt4)

#Install specific version
conda install slsdet=2020.03.02.dev0 #developer version from 3 March 2020

Source code

One can also obtain the source code from this repository and compile.

git clone https://github.com/slsdetectorgroup/slsDetectorPackage.git

Dependencies

  • Lib: c++11 compiler (gcc=>4.8), ZeroMQ 4
  • Gui: Qt 4.8 and Qwt 6.0
  • Calibration wizards and ctbGUI: ROOT

Compilation

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

After compiling, the libraries and executables will be found in slsDetectorPackage/build/bin 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
  • -e: Debug mode

Basic Option: ./cmk.sh -b

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: ./cmk.sh -j9

For rebuilding only certain sections
./cmk.sh -tg #only text client and gui
./cmk.sh -r #only receiver

2. Compile without script
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.

    $ mkdir build
    $ cd build
    $ cmake ../slsDetectorPackage  -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_SANITIZER=ON
    $ make

After compiling, the libraries and executable will be found at bin directory

    $ ls bin/
    libSlsDetector.a  libSlsDetector.so  libSlsReceiver.a  libSlsReceiver.so
    sls_detector_acquire  sls_detector_get  slsDetectorGui  sls_detector_help  sls_detector_put  slsReceiver slsMultiReceiver
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%