mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-05 20:30:03 +02:00
udpate documentation on qt5 gui (#591)
* documentaio on building qt5 gui * added comment by erik about libgl
This commit is contained in:
parent
3fb22dc20a
commit
f1e0bda08d
@ -55,7 +55,13 @@ We have three different packages available:
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
#List available versions
|
#List available versions
|
||||||
|
# lib and binaries
|
||||||
|
conda search slsdetlib
|
||||||
|
# python
|
||||||
conda search slsdet
|
conda search slsdet
|
||||||
|
# gui
|
||||||
|
conda search slsdetgui
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -133,7 +139,7 @@ Example cmake options Comment
|
|||||||
=============================== ===========================================
|
=============================== ===========================================
|
||||||
-DSLS_USE_PYTHON=ON Python
|
-DSLS_USE_PYTHON=ON Python
|
||||||
-DPython_FIND_VIRTUALENV=ONLY Python from only the conda environment
|
-DPython_FIND_VIRTUALENV=ONLY Python from only the conda environment
|
||||||
-DZeroMQ_HINT=/usr/lib64 System zmq instead of conda
|
-DZeroMQ_HINT=/usr/lib64 Use system zmq instead
|
||||||
-DSLS_USE_GUI=ON GUI
|
-DSLS_USE_GUI=ON GUI
|
||||||
=============================== ===========================================
|
=============================== ===========================================
|
||||||
|
|
||||||
@ -181,7 +187,7 @@ Build using in-built cmk.sh script
|
|||||||
# new build, python and compile in parallel:
|
# new build, python and compile in parallel:
|
||||||
./cmk.sh -bpj5
|
./cmk.sh -bpj5
|
||||||
|
|
||||||
#To use the system zmq (/usr/lib64) instead of conda
|
#To use the system zmq (/usr/lib64) instead
|
||||||
./cmk.sh -bj5 -q /usr/lib64
|
./cmk.sh -bj5 -q /usr/lib64
|
||||||
|
|
||||||
|
|
||||||
@ -206,6 +212,54 @@ using this compiler
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Build slsDetectorGui (Qt5)
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
1. Using pre-built binary on conda
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
conda create -n myenv slsdetgui=7.0.0
|
||||||
|
conda activate myenv
|
||||||
|
|
||||||
|
|
||||||
|
2. Using system installation on RHEL7
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
yum install qt5-qtbase-devel.x86_64
|
||||||
|
yum install qt5-qtsvg-devel.x86_64
|
||||||
|
|
||||||
|
|
||||||
|
3. Using conda
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
#Add channels for dependencies and our library
|
||||||
|
conda config --add channels conda-forge
|
||||||
|
conda config --add channels slsdetectorgroup
|
||||||
|
conda config --set channel_priority strict
|
||||||
|
|
||||||
|
# create environment to compile
|
||||||
|
# on rhel7
|
||||||
|
conda create -n slsgui zeromq gxx_linux-64 gxx_linux-64 mesa-libgl-devel-cos6-x86_64 qt
|
||||||
|
# on fedora or newer systems
|
||||||
|
conda create -n slsgui zeromq qt
|
||||||
|
|
||||||
|
# when using conda compilers, would also need libgl, but no need for it on fedora unless maybe using it with ROOT
|
||||||
|
|
||||||
|
# activate environment
|
||||||
|
conda activate slsgui
|
||||||
|
|
||||||
|
# compile with cmake outside slsDetecorPackage folder
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ../slsDetectorPackage -DSLS_USE_GUI=ON
|
||||||
|
make -j12
|
||||||
|
|
||||||
|
# or compile with cmk.sh
|
||||||
|
cd slsDetectorPackage
|
||||||
|
./cmk.sh -cbgj9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Build this documentation
|
Build this documentation
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user