cmake
config_error
ai_generated
true
CMake Error: found library with wrong architecture
ID: cmake/find-library-wrong-arch
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
Found library compiled for different CPU architecture.
genericWorkarounds
-
90% success Install correct architecture library: apt-get install lib:amd64
-
88% success Set CMAKE_SYSTEM_PROCESSOR and CMAKE_FIND_ROOT_PATH for cross-compilation
Dead Ends
Common approaches that don't work:
-
Force link with -L and ignore arch
88% fail
Linker error or crash
-
Use file from wrong sysroot
82% fail
ABI mismatch