The Lithium project is designed as a comprehensive, lightweight platform for astronomy enthusiasts and professionals alike, offering not just capture software but also serving as a device control server, system manager, and a platform for extensive customization, adaptable to various applications and research domains.
- Versatile Functionality: Supports full-spectrum application from image acquisition to device management and system operations.
- Contemporary Language Standard: Built using the latest C++20 standard with compatibility for select C++23 features, ensuring modernity and efficiency in code.
- Dynamic Module Loading: Enables hot updates through C++ dynamic libraries, facilitating instant expansion of capabilities and enhancing flexibility.
- Embedded Scripting Engine: Integrates a high-performance pocketpy interpreter supporting Python scripts for rapid development of tailored logic.
- Broad Platform Compatibility: Fully supports Windows and Linux environments (including x86_64 and ARM architectures), with partial support for MacOS.
- Comprehensive APIs and Components: Offers a wide range of APIs and functional components that cater to diverse astronomical imaging needs, encouraging users to develop modules for missing functionalities.
- Open-Source Licensing Model: Adheres to the GPLv3 license, fostering community sharing and collaboration while allowing for proprietary plugins to protect business-sensitive code.
- Educational and Inspirational: Encourages learning and innovation through high-quality code examples and documentation, promoting knowledge dissemination and skill enhancement.
It is recommended to use the MSYS2 environment and leverage the Tsinghua University Open Source Software Mirror for expedited downloads. The following commands install necessary dependencies:
# Add Tsinghua University mirror source
sed -i 's|https://mirror.msys2.org/|https://mirrors.tuna.tsinghua.edu.cn/msys2/|g' /etc/pacman.d/mirrorlist.mingw64
# Update system packages and install build tools and dependencies
pacman -Syu
pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-dlfcn mingw-w64-x86_64-cfitsio mingw-w64-x86_64-cmake mingw-w64-x86_64-libzip mingw-w64-x86_64-zlib mingw-w64-x86_64-fmt mingw-w64-x86_64-libnova make mingw-w64-x86_64-gtest
pacman -S mingw-w64-x86_64-clang-analyzer
pacman -S mingw-w64-x86_64-clang-tools-extra
pacman -S mingw-w64-x86_64-opencv
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install build-essential cmake libcfitsio-dev zlib1g-dev libssl-dev libzip-dev libfmt-dev
Alternatively, utilize the provided quick-build scripts to streamline the process.
- Create Build Directory:
mkdir build && cd build
- Configure Project:
cmake ..
- Compile and Execute: Use
make -jN
orcmake --build . --parallel N
commands to compile in parallel, where N denotes the number of threads. Afterwards, launch the program via./lithium_server
.
Embarking on the journey with Lithium, we embrace curiosity and an unwavering pursuit of knowledge, echoing the adapted verse which reminds us that every attempt, though fraught with challenges and setbacks, is a necessary step toward wisdom and understanding. Together, let us navigate the vast cosmos of astronomical imaging, our technology the vessel, innovation our sail, advancing relentlessly forward.