cmake dependency_error ai_generated true

CMake Error: PkgConfig module not found

ID: cmake/pkg-config-not-found

Also available as: JSON · Markdown
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3 active

Root Cause

pkg-config tool or .pc file not found.

generic

Workarounds

  1. 92% success Install pkg-config: apt-get install pkg-config
  2. 88% success Set PKG_CONFIG_PATH to directory containing .pc files

Dead Ends

Common approaches that don't work:

  1. Hardcode library paths 78% fail

    Not portable across systems

  2. Skip pkg-config check 72% fail

    Missing compile/link flags