cross-compiling final linker transitive lib not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

cross-compiling final linker transitive lib not found

De Pauw jimmy

I have a problem with cross-compiling that i don't know how to solve
even after days of searching.
The situation is :

- Project compiled on ARM platform directly, works fine.
- Cross-compiled, final executable linking fails because of a transitive
library not found.

I am using a few system libraries that are all found in the initial
cmake setup.
Compiling also works until it requires linking of my final target.

There, at some point, it checks for
/usr/local/sysroot_jetson/usr/lib/aarch64-linux-gnu/ (which
is found)
libdrm depends on wich the linker does not found even though
it's available on my sysroot but not in a standard directory.
The directory is /usr/local/sysroot_jetson/usr/lib/aarch64-linux-gnu/tegra

On the ARM system this directory is searched by the linker because of
/etc/ but this is not used at all when

How the linker when cross-compiling can be instructed to search in
additional directories for transitive dependencies?


Powered by

Kitware offers various services to support the CMake community. For more information on each offering, please visit

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe:

This mailing list is deprecated in favor of