Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ananicy-cpp / usr / share / doc / ananicy-cpp / BUILDING.md
Size: Mime:

Build Guide - ananicy-cpp

Última actualización: 2025-12-19 Autor: Pablo / CuerdOS Dev Team

Este documento describe cómo compilar, empaquetar y preparar un entorno de desarrollo para ananicy-cpp en Linux.


1. Requisitos del sistema

  • Debian 13 / CuerdOS 2
  • Kernel moderno (>= 6.x recomendado)
  • Herramientas de compilación:
    • gcc o clang (recomendado para eBPF)
    • cmake >= 3.25
    • make o gmake
    • git
    • libbpf y headers del kernel
    • bpftool (para generar skeletons BPF)
    • gcc-c++
    • ninja-build
    • systemd-devel
  • Opcionales:
    • ccache para acelerar recompilaciones
    • clang-tidy, cppcheck para análisis estático

Ejemplo de instalación en Ubuntu/Debian:

sudo apt update
sudo apt install -y build-essential clang llvm libbpf-dev bpftool cmake git make bpftool gcc-c++ ninja-build systemd-devel

### 2. Preparar CMakeLists.txt

**Añadir estas líneas al final del archivo:**

# ---- CPack ----
set(CPACK_PACKAGE_NAME "ananicy-cpp")
set(CPACK_PACKAGE_VERSION "1.1.1")
set(CPACK_PACKAGE_CONTACT "CuerdOS Dev Team")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "CuerdOS Dev Team")
set(CPACK_PACKAGE_VENDOR "ananicy-cpp")

include(CPack)

### 3. Configurar el build

cmake -S . -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX=/usr

### 4. Compilar

cmake --build build -j$(nproc)

### 5. Empaquetar

cd build
cpack -G DEB