### Install Library Source: https://gitlab.com/free-astro/siril/-/blob/master/subprojects/healpix_cxx/CMakeLists.txt Installs the built healpix_cxx library and its archive to the lib directory. ```cmake #install library INSTALL(TARGETS healpix_cxx LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) ``` -------------------------------- ### Build Siril with Meson Source: https://gitlab.com/free-astro/siril/-/blob/master/README.md Commands to set up, build, and install Siril using the Meson build system. Adjust the --prefix to your desired installation directory. Ensure all optional dependencies are available or explicitly disabled. ```bash # adjust the prefix to wherever you want to install Siril meson setup --prefix /usr/local --buildtype release _build ninja -C _build ninja -C _build install ``` -------------------------------- ### Glob and Install Headers Source: https://gitlab.com/free-astro/siril/-/blob/master/subprojects/healpix_cxx/CMakeLists.txt Finds all .h files in the current directory and installs them into the include/healpix_cxx directory. ```cmake # Glob headers file(GLOB SRC_HEADERS *.h) #install headers INSTALL(FILES ${SRC_HEADERS} DESTINATION include/healpix_cxx) ``` -------------------------------- ### Install Siril via Homebrew Source: https://gitlab.com/free-astro/siril/-/blob/master/README.md Install Siril on macOS using the Homebrew package manager. Note that this installation method is not officially maintained by the Siril developers. ```bash brew install siril ``` -------------------------------- ### GPL Notice for Interactive Terminal Programs Source: https://gitlab.com/free-astro/siril/-/blob/master/LICENSE.md This notice should be displayed by programs that interact with the terminal when they start, informing users about warranty and redistribution conditions. ```text Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details. ``` -------------------------------- ### Uninstall Siril Source: https://gitlab.com/free-astro/siril/-/blob/master/README.md Command to remove Siril from your system when it was installed using the Meson build system. ```bash ninja -C _build uninstall ``` -------------------------------- ### Get Pixel Data using Python Source: https://gitlab.com/free-astro/siril/-/blob/master/python_module/README.md Retrieve the pixel data of the currently loaded image using `get_pixeldata()`. This data can then be processed using Python libraries like NumPy. ```python get_pixeldata() ``` -------------------------------- ### Standard GPL Header for Source Files Source: https://gitlab.com/free-astro/siril/-/blob/master/LICENSE.md Include this header at the beginning of each source file to state the program's name, copyright, and licensing terms under the GNU GPL. ```text Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ``` -------------------------------- ### Compile Siril with Meson Source: https://gitlab.com/free-astro/siril/-/blob/master/src/tests/README.md Standard procedure to compile Siril using Meson for release builds. Ensure you are in the root directory of the Siril project. ```bash mkdir _build meson --buildtype release _build cd _build ninja ninja install ``` -------------------------------- ### Run Siril Tests with Meson Source: https://gitlab.com/free-astro/siril/-/blob/master/src/tests/README.md Commands to execute the test suite using Meson. Use '-v' for verbose output. ```bash meson test meson test -v ``` -------------------------------- ### Glob Sources and Build Static Library Source: https://gitlab.com/free-astro/siril/-/blob/master/subprojects/healpix_cxx/CMakeLists.txt Finds all .cc files in the current directory and builds a static library named healpix_cxx. Sets the library version. ```cmake # add sources file(GLOB SRC_FILES *.cc) #build a shared library ADD_LIBRARY(healpix_cxx STATIC ${SRC_FILES}) set_target_properties(healpix_cxx PROPERTIES VERSION 8.3.0 SOVERSION 4) ``` -------------------------------- ### Clone Siril Repository Source: https://gitlab.com/free-astro/siril/-/blob/master/README.md Use this command to fetch the latest version of Siril's source code from its GitLab repository. Ensure you include the --recurse-submodules flag to also download necessary submodules. ```bash git clone --recurse-submodules https://gitlab.com/free-astro/siril.git ``` -------------------------------- ### Project and CMake Minimum Version Source: https://gitlab.com/free-astro/siril/-/blob/master/subprojects/healpix_cxx/CMakeLists.txt Sets the project name to healpix_cxx and specifies the minimum required CMake version. ```cmake project(healpix_cxx CXX) cmake_minimum_required(VERSION 3.10) ``` -------------------------------- ### Update Siril Build Source: https://gitlab.com/free-astro/siril/-/blob/master/README.md Run these commands to update your existing Siril build after pulling the latest changes from the repository. This recompiles and reinstalls the necessary components. ```bash git pull git submodule update ninja -C _build install ``` -------------------------------- ### Compile Siril Tests with Autotools/Make Source: https://gitlab.com/free-astro/siril/-/blob/master/src/tests/README.md Alternative method to compile test programs using autotools/make. This script is located in the src/tests directory. ```bash ./build.sh ``` -------------------------------- ### Set Header Keyword using Siril Command Source: https://gitlab.com/free-astro/siril/-/blob/master/python_module/README.md Use the `cmd()` method to execute Siril commands, such as updating header keywords. This is the recommended way to modify image metadata. ```python cmd("update_key", "key", "value") ``` -------------------------------- ### Debug Siril Tests with GDB Source: https://gitlab.com/free-astro/siril/-/blob/master/src/tests/README.md Launch a specific test ('ser_test') under the control of GDB. Note that this may not work on all systems like Raspbian. ```bash meson test --gdb ser_test ``` -------------------------------- ### Debug Siril Tests with Valgrind Source: https://gitlab.com/free-astro/siril/-/blob/master/src/tests/README.md Run a specific test ('ser_test') with Valgrind for memory debugging. Logs are printed to stdout. ```bash meson test --wrap=valgrind ser_test --print-errorlogs ``` -------------------------------- ### Set Pixel Data using Python Source: https://gitlab.com/free-astro/siril/-/blob/master/python_module/README.md Update the pixel data of the loaded image with a NumPy array using `set_pixeldata()`. This allows for custom pixel processing algorithms to be implemented in Python. ```python set_pixeldata() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.