[PR #1861] build(autoconf): Add GPAC library detection to configure #2633

Open
opened 2026-01-29 17:23:11 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1861

State: closed
Merged: Yes


Summary

  • Add GPAC library detection to configure script using pkg-config
  • Fail early with a helpful error message if GPAC is not installed

Problem

Previously, ./configure would succeed even without GPAC installed, leading to a confusing compile-time error:

../src/lib_ccx/mp4.c:5:10: fatal error: gpac/isomedia.h: No such file or directory

Solution

Now configure checks for GPAC via pkg-config and fails early with a clear error message:

configure: error: GPAC library not found. Install gpac-devel (Fedora/RHEL), libgpac-dev (Debian/Ubuntu), or gpac (Arch) before proceeding.

Test plan

  • Verified ./configure detects GPAC when installed (checking for gpac... yes)
  • Verified build completes successfully with the change
  • Verified ./ccextractor --version works

Fixes #1584

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1861 **State:** closed **Merged:** Yes --- ## Summary - Add GPAC library detection to configure script using pkg-config - Fail early with a helpful error message if GPAC is not installed ## Problem Previously, `./configure` would succeed even without GPAC installed, leading to a confusing compile-time error: ``` ../src/lib_ccx/mp4.c:5:10: fatal error: gpac/isomedia.h: No such file or directory ``` ## Solution Now configure checks for GPAC via pkg-config and fails early with a clear error message: ``` configure: error: GPAC library not found. Install gpac-devel (Fedora/RHEL), libgpac-dev (Debian/Ubuntu), or gpac (Arch) before proceeding. ``` ## Test plan - [x] Verified `./configure` detects GPAC when installed (`checking for gpac... yes`) - [x] Verified build completes successfully with the change - [x] Verified `./ccextractor --version` works Fixes #1584 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claunia added the pull-request label 2026-01-29 17:23:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2633