mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 01:31:10 +00:00
e855512c77dadddf1436f2eea2fd5b8c6ac324bf
logos-cpp-sdk
How to Build
Using Nix (Recommended)
The project includes a Nix flake for reproducible builds:
# Build the SDK
nix build '.#logos-cpp-sdk'
# Build the code generator
nix build '.#cpp-generator'
# Build both (default)
nix build
# Enter development shell with all dependencies
nix develop
Note: In zsh, you need to quote the target (e.g., '.#logos-cpp-sdk') to prevent glob expansion.
If you don't have flakes enabled globally, add experimental flags:
nix build '.#logos-cpp-sdk' --extra-experimental-features 'nix-command flakes'
The compiled library can be found at result/
Manual Build
Building the C++ SDK
cd cpp
./compile.sh
Building the Code Generator
cd cpp-generator
./compile.sh
The generator binary will be available at build/bin/logos-cpp-generator.
Requirements
Build Tools
- CMake (3.x or later)
- Ninja build system
- pkg-config
Dependencies
- Qt6 (qtbase)
- Qt6 Remote Objects (qtremoteobjects)
Supported Platforms
- macOS (aarch64-darwin, x86_64-darwin)
- Linux (aarch64-linux, x86_64-linux)
Languages
C++
90.8%
Nix
5.6%
CMake
1.7%
C
1.2%
Shell
0.7%