From b2ba077ec7660b3422b135eb73994ca934b2d1aa Mon Sep 17 00:00:00 2001 From: Alice Date: Tue, 1 Dec 2026 17:51:41 +0100 Subject: [PATCH] updated dependencies --- docs/src/consuming.rst | 5 ++++- docs/src/dependencies.rst | 7 ++++++- docs/src/installation.rst | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/src/consuming.rst b/docs/src/consuming.rst index c1190798e..4648e1cf5 100644 --- a/docs/src/consuming.rst +++ b/docs/src/consuming.rst @@ -29,6 +29,9 @@ A minimal CMakeLists.txt could look like this: #Link towards slsDetectorShared target_link_libraries(example slsDetectorShared) +.. Note:: + Per default slsDetectorPackage only builds static libraries. To build the `libSls*.so` libraries for dynamic linking, enable them by passing `-DSLS_BUILD_SHARED_LIBRARIES=ON` to cmake. + A fully working example can be found at: https://github.com/slsdetectorgroup/cmake-subfolder-example @@ -113,4 +116,4 @@ manually when invoking g++. This can sometimes be handy for a quick try. .. code-block:: bash - g++ -I/install/path/include/ -L/install/path/lib64/ myapp.cpp -lSlsDetector -lSlsSupport -Wl,-rpath=../install/path/lib64 \ No newline at end of file + g++ -I/install/path/include/ -L/install/path/lib64/ myapp.cpp -lSlsDetector -lSlsSupport -Wl,-rpath=../install/path/lib64 -pthread -lrt \ No newline at end of file diff --git a/docs/src/dependencies.rst b/docs/src/dependencies.rst index 8af4508b0..33cb73685 100644 --- a/docs/src/dependencies.rst +++ b/docs/src/dependencies.rst @@ -13,6 +13,10 @@ To use the basic building blocks, meaning sls_detector_get/put and the shared libraries these are needed: * Linux, preferably recent kernel (currently no cross platform support) + * POSIX threads (pthread). The libraries call pthread directly, so a + pthread-compatible threading library is required. + * POSIX shared memory (``shm_open``/ ``mmap``). On glibc < 2.34 (e.g. RHEL 8) this requires linking ``librt``, + which CMake handles automatically. * CMake >= 3.14 * C++17 compatible compiler. (We test with gcc and clang) @@ -28,7 +32,8 @@ Additionally the core requires the following dependencies: .. note:: - Both ZeroMQ and rapidjson are bundled in libs. One does not need to pre-install them on the system. Alternatively, one can fetch ZeroMQ from GitHub by passing the cmake options ``-DSLS_FETCH_ZEROMQ_FROM_GITHUB=ON``. + Both ZeroMQ and rapidjson are bundled in libs. One does not need to pre-install them on the system. Alternatively, one can fetch ZeroMQ from GitHub by passing the cmake options ``-DSLS_FETCH_ZEROMQ_FROM_GITHUB=ON`` or + use the system's installed version by passing the option ``-DSLS_USE_SYSTEM_ZMQ=ON``. .. note:: diff --git a/docs/src/installation.rst b/docs/src/installation.rst index 347173cc9..13c385e37 100644 --- a/docs/src/installation.rst +++ b/docs/src/installation.rst @@ -183,6 +183,7 @@ Example cmake options Comment -DSLS_USE_GUI=ON GUI -DSLS_USE_HDF5=ON HDF5 -DSLS_USE_SIMULATOR=ON Simulator +-DSLS_BUILD_SHARED_LIBRARIES=ON Builds shared libraries =============================== =============================== .. note :: @@ -427,7 +428,8 @@ is to use conda | v8.0.0+: | zeromq (v4.3.5) is built | * by default from tar file in repo (libs/libzmq/libzmq-4.3.5.tar.gz) -| * or use advanced option SLS_FETCH_ZMQ_FROM_GITHUB [`link `__]. +| * or use advanced option `SLS_FETCH_ZMQ_FROM_GITHUB` [`link `__]. +| * Alternatively use the system zeromq installation by passing the option `-DSLS_USE_SYSTEM_ZMQ=ON` to cmake | | v7.x.x and older: | zeromq-devel must be installed and one can hint its location using