-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dh_shlibdeps fails to find some dependencies in cross-compilation with custom sysroot #12
Comments
I recommend having a look at https://wiki.debian.org/CrossCompiling The correct way to cross build is to use a Debian system (chroot, container or similar) with Multi-Arch enabled. You will need most build-depends installed for the "host" architecture and some for the "build" architecture (per GNU autoconf definition or the The As for installing the build-dependencies, # Setup/once
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install build-essential crossbuild-essential-armhf
# At each build
cd <source-root> # directory containing debian/control.
sudo apt-get build-dep -aarmhf .
CONFIG_SITE=/etc/dpkg-cross/cross-config.armhf DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -aarmhf -Pcross,nocheck In this example, There are some more recommendations in https://wiki.debian.org/CrossBuildPackagingGuidelines. It starts off by explaining concepts that should already be covered above, so you can skip to Note the package build may start to fail under this setup because path change. In a native build, Hope that helps! :) PS: If you are new to autoconf/Debian's terms for cross-building, take some extra time to learn it. Many cross-building stacks tends to only have two terms like "build" vs. "target", which are not typically aligned with the autoconf/Debian terms - like in autoconf/Debian, the |
I’m encountering issues with dh_shlibdeps when cross-compiling in an environment where the sysroot is not "/".
I’ve experimented with the
admindir
argument, but the results remain inconsistent — some dependencies are correctly found, but others are not, making the process unreliable.My questions are:
admindir
is intended to help in this scenario, what are its expected use cases, and how should it be properly configured?Any guidance on how to properly set up dh_shlibdeps (or dpkg-shlibdeps) in such an environment would be greatly appreciated.
The text was updated successfully, but these errors were encountered: