You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cross-compiling and if a packages is available in the system, the compilation may fail with error message file in wrong format, indicating that CMake found a package, but the it is available for the other architecture. For example, if we compile for the target x86 on the host machine x86_64, where the sqlite3.so library / package is available and it is compiled for the x86_64 architecture, the find_package(SQLite3) will indicate that found package, but when try to link for x86 target build, it will fail.
To Reproduce
on the x86_64 host install sqlite3 library and compile for the target x86:
Describe:
When cross-compiling and if a packages is available in the system, the compilation may fail with error message
file in wrong format
, indicating that CMake found a package, but the it is available for the other architecture. For example, if we compile for the targetx86
on the host machinex86_64
, where thesqlite3.so
library / package is available and it is compiled for thex86_64
architecture, thefind_package(SQLite3)
will indicate thatfound package
, but when try to link forx86
target build, it will fail.To Reproduce
on the
x86_64
host installsqlite3
library and compile for the targetx86
:Expected behavior
The build should succeed.
ncurses
is not available for the target architecture.gtest
library if it is not available for the target architecture.The text was updated successfully, but these errors were encountered: