|
rtimv
An astronomical image viewer optimized for real-time image stream display.
|
This document describes dependencies, standard CMake usage, and CMake configuration options, and deployment of rtimvServer with systemd.
pkg-configmxlib https://github.com/jaredmales/mxlibmxlib is the miminum requirementshmims) mxlib must be built with ImageStreamIOThe following are optional. Even if you have none of these installed rtimv should still build and provide FITS support (via mxlib above).
shmims): libImageStreamIO from MILKmxlib must be built with this already installed and configured to enable this, see above.milkzmq image transfer protocol:libzmqxrif compression protocol: https://github.com/jaredmales/xrifgRPC for C++From the repository root:
Install (default prefix is typically /usr/local):
To install to a custom prefix:
The default prefix is /usr/local. Note that on Fedora 42 you may need to add this to ld.so.conf.d:
CMAKE_INSTALL_PREFIX /usr/local, /opt/rtimv).CMAKE_BUILD_TYPE Release, Debug, RelWithDebInfo.These options are available when Protobuf + gRPC are found (the same condition used to build rtimvServer):
RTIMV_INSTALL_SYSTEMD_UNIT (default: ON) rtimvServer systemd unit file.RTIMV_SERVER_SYSTEMD_USER (default: rtimv) rtimvServer under systemd.RTIMV_SERVER_SYSTEMD_GROUP (default: rtimv) rtimvServer under systemd.RTIMV_SERVER_SYSTEMD_ENVIRONMENT_FILE (default: /etc/default/rtimvServer) EnvironmentFile=-....RTIMV_SERVER_SYSTEMD_ARGS (default: empty) ExecStart for rtimvServer.RTIMV_SERVER_SYSTEMD_RESTART (default: on-failure) Restart=.RTIMV_SERVER_SYSTEMD_RESTART_SEC (default: 2s) RestartSec=.RTIMV_SERVER_SYSTEMD_UNIT_DIR (default: ${CMAKE_INSTALL_LIBDIR}/systemd/system) A typical build setup for MagAO-X is
Note: on Fedora 42 additionally specify -DRTIMV_SERVER_SYSTEMD_UNIT_DIR=/usr/lib/systemd/system
By default the installed unit references:
Create that file and set variables as needed:
RTIMV_CONFIG_PATH, here set to the MagAO-X standard, is used as the base path for -c/--config filenames.
rtimvServer is intended to run as an unprivileged user.~/.bashrc, ~/.bash_aliases) are not sourced by systemd services; use EnvironmentFile= or explicit Environment= in the unit.