Commit 4b5fae14 authored by Laurent Claustre's avatar Laurent Claustre
Browse files

Merge branch '155-update-documentation-for-conda-installation' into 'master'

Resolve "update documentation for conda installation"

Closes #155

See merge request !200
parents 2ba1acdf 49ad9b2e
Pipeline #49204 passed with stages
in 21 minutes and 51 seconds
......@@ -9,8 +9,7 @@ Install binary packages
We provide Conda_ binary packages for some cameras. This is, by far, the easiest way to get started with LImA! For instance:
::
conda install --channel esrf-bcu lima-camera-basler
conda install -c conda-forge -c esrf-bcu lima-camera-basler
would install a fully loaded LImA and all its dependencies with the Basler camera plugin and SDK. The camera comes as a python module but is also C++ development package that includes header files and `CMake package config <https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html>`_ files.
......@@ -18,7 +17,7 @@ If you need the Tango device server for the camera, run:
::
conda install --channel esrf-bcu --channel tango-controls lima-camera-basler-tango
conda install -c conda-forge -c esrf-bcu -c tango-controls lima-camera-basler-tango
.. note:: The runtime libraries of the camera's SDK are provided as well but some cameras requires drivers or specific setups than needs to be installed manually.
......
......@@ -166,8 +166,17 @@ A good practice would be not to pollute the base environment and work in a dedic
::
conda create -n lima python=3
source activate lima
conda create -n lima
conda activate lima
Conda channels must be defined in the proper order with conda-forge first and prepend to the default anaconda channel:
::
conda config --env --add channels conda-forge
conda config --env --append channels esrf-bcu
conda config --env --append channels tango-controls
Then install the build tools:
......@@ -182,8 +191,8 @@ You might need to leave the `Conda` environment and enter it again so that the e
::
source deactivate
source activate lima
conda deactivate
conda activate lima
Finally, install the ``lima-core`` package (and dependencies) with `Conda`:
......@@ -191,6 +200,12 @@ Finally, install the ``lima-core`` package (and dependencies) with `Conda`:
conda install lima-core
If you want to run the LimaCCDs device server on top of your camera plugin we recommend to install the simulator tango package, then you will get installed all the packages by dependencies:
::
conda install lima-camera-simulator-tango
And you are good to code! A good way to start is to use our seed project at:
::
......@@ -213,14 +228,14 @@ For linux:
::
cmake -Bbuild -H. -DLIMA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_FIND_ROOT_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DPYTHON_SITE_PACKAGES_DIR=$CONDA_PREFIX/<Python site package location>
cmake -Bbuild -H. -DLIMA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_FIND_ROOT_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
cmake --build build --target install
For windows:
::
cmake -Bbuild -H. -DLIMA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_FIND_ROOT_PATH=%CONDA_PREFIX% -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX% -DPYTHON_SITE_PACKAGES_DIR=%CONDA_PREFIX%/<Python site package location>
cmake -Bbuild -H. -DLIMA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_FIND_ROOT_PATH=%CONDA_PREFIX% -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%
cmake --build build --target install --config Release
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment