Skip to content

gpac no longer included in ubuntu (resolute...) will make it hard to impossible to build #2254

Open

Description

@sjpotter

the dependency on gpac is going to make it hard for ubuntu users to build ccextractor anymore. It seems one might be able to get it from gpac.io but for my test system running resolute.

Activity

  1. x15sr71 commented on Apr 12, 2026

    @x15sr71
    Contributor

    Thanks for reporting!

    I reproduced this on Ubuntu 25.10 (Questing Quokka) and 26.04 pre-release (Resolute Raccoon, ubuntu:devel) in clean linux/amd64 Docker containers. (I also hit this issue while working on the Snap packaging in #1998)

    libgpac-dev is present in Ubuntu 24.04 Noble's universe repo but was dropped from 24.10 (Oracular) onward — it's absent from all repos on both 25.10 and 26.04, not an enablement issue.

    The reason cmake hard-fails rather than degrading gracefully is pkg_check_modules(GPAC REQUIRED gpac) in src/lib_ccx/CMakeLists.txt — unlike FFmpeg and OCR which are behind option() flags, GPAC has no guard, so the build aborts immediately.

    Verified workaround — build GPAC v2.4.0 from source then build CCExtractor (tested in a clean Ubuntu 26.04 pre-release Docker container):

    apt install -y git build-essential pkg-config cmake \
    rustup libclang-dev zlib1g-dev libssl-dev libpng-dev libjpeg-dev
    rustup default stable
    git clone https://github.com/gpac/gpac.git
    cd gpac && git checkout v2.4.0
    ./configure --prefix=/usr
    make -j$(nproc)
    make install
    pkg-config --modversion gpac  # should print 2.4
    
    cd ~
    git clone https://github.com/CCExtractor/ccextractor.git
    cd ccextractor && mkdir build && cd build
    cmake ../src/
    make -j$(nproc)
    ./ccextractor --version  # confirmed working

    Alternatively, if you'd rather skip the source build entirely, Snap support was introduced in #1998. The Snap package bundles GPAC internally — no system-level install required. → Get the Snap build


    Credit: the GPAC source-build approach was originally suggested by @cfsmp3 during Snap packaging work in #1998; the steps above are adapted and verified from that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions