cmake
dependency_error
ai_generated
true
CMake Error: PkgConfig module not found
ID: cmake/pkg-config-not-found
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
pkg-config tool or .pc file not found.
genericWorkarounds
-
92% success Install pkg-config: apt-get install pkg-config
-
88% success Set PKG_CONFIG_PATH to directory containing .pc files
Dead Ends
Common approaches that don't work:
-
Hardcode library paths
78% fail
Not portable across systems
-
Skip pkg-config check
72% fail
Missing compile/link flags