Skip to content
Discussion options

You must be logged in to vote

The reason you are encountering this error is that cross runs your build inside a container. While you may have installed the aarch64 libraries on your host machine, they are not visible to the compiler inside the isolated build environment.

To fix this, you need to provide a custom Docker image to cross that contains the necessary development headers and libraries for your target architecture.

1. Create a Custom Dockerfile

Create a file named Dockerfile.aarch64 in your project root. You will extend the default cross image for your target and install the required packages using dpkg architecture support.

ARG CROSS_BASE_IMAGE
FROM $CROSS_BASE_IMAGE

# Add the foreign architecture and insta…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AidFTech
Comment options

@Nickalus12
Comment options

Answer selected by AidFTech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants