Installation¶
Prerequisites¶
System Requirements¶
- Python 3.8+ (for Python-based workflow)
- Rust 1.75+ (for Rust CLI, optional)
- CMake 3.20+
- Git (for dependency management)
Platform-Specific Requirements¶
# Install Chocolatey if not already installed
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install dependencies
choco install cmake python git
# For MSVC builds (optional)
# Install Visual Studio 2019 or later with C++ workload
Install CCGO¶
Via pip (Recommended)¶
Via Rust Cargo (Latest Development Version)¶
From Source¶
# Clone the repository
git clone https://github.com/zhlinh/ccgo.git
cd ccgo
# Install Python version
cd ccgo
pip3 install -e .
# Or build Rust version
cd ../ccgo-rs
cargo build --release
cargo install --path .
Verify Installation¶
Expected output:
Platform-Specific Toolchains¶
CCGO supports two approaches for platform-specific builds:
1. Docker-Based Builds (Recommended)¶
No local toolchains required! Docker builds work on any host OS:
# Install Docker Desktop
# macOS: https://docs.docker.com/desktop/mac/install/
# Windows: https://docs.docker.com/desktop/windows/install/
# Linux: https://docs.docker.com/engine/install/
# Verify Docker installation
docker --version
2. Native Toolchains (Optional)¶
For native builds without Docker:
Next Steps¶
- Quick Start - Create your first project
- Configuration - Configure CCGO for your needs
- Docker Builds - Learn about universal cross-compilation