Prerequisites
Before building Zeal, make sure you have all the required dependencies installed for your platform.Basic Build
Zeal uses CMake as its build system. The simplest way to build Zeal is:Configure the build
Run CMake to configure the build system:This creates a
build directory with the generated build files.Using CMake Presets
Zeal provides CMake presets for common build configurations. Presets simplify the build process by providing pre-configured settings.Available Presets
The presets use the Ninja Multi-Config generator for faster builds. Make sure you have Ninja installed.
Preset Configurations
- ninja-multi: Basic multi-configuration build
- ninja-multi-portable: Portable build with
ZEAL_PORTABLE_BUILD=ON - ninja-multi-vcpkg: Windows build using vcpkg for dependencies
- ninja-multi-vcpkg-test: Build with testing enabled
Build Options
Zeal supports several CMake options to customize the build:| Option | Default | Description |
|---|---|---|
BUILD_TESTING | ON | Build the testing suite |
ZEAL_PORTABLE_BUILD | OFF | Build portable version |
ZEAL_RELEASE_BUILD | OFF | Mark as a tagged release build |
ZEAL_USE_QT5 | OFF | Force use of Qt 5 (auto-detected by default) |
Examples
Build Types
CMake supports multiple build types:- Debug: No optimization, includes debug symbols
- Release: Full optimization, no debug symbols
- RelWithDebInfo: Optimized with debug symbols (recommended)
- MinSizeRel: Optimized for size
When using multi-config generators like Ninja Multi-Config, specify the configuration during build:
Running Tests
IfBUILD_TESTING is enabled, you can run the test suite:
Building Packages
Zeal uses CPack for creating distributable packages:Troubleshooting
Qt Version Issues
Zeal requires Qt 5.15.2 or Qt 6.2.0+. If CMake can’t find Qt:vcpkg Dependencies
On Windows, using vcpkg is recommended for managing dependencies:libarchive Not Found
If libarchive isn’t found (common on macOS with Homebrew):Missing X11 Dependencies (Linux)
On Linux, you may need X11 development packages:Compiler Warnings as Errors
CMake 3.24+ enables
CMAKE_COMPILE_WARNING_AS_ERROR by default. This helps catch potential issues early.Next Steps
Dependencies
Learn about all required and optional dependencies
Platform Notes
Platform-specific build instructions and requirements