Skip to content
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

Can’t cross-compile from aarch64-unknowm-linux-gnu target. #64

Open
purpleP opened this issue Nov 8, 2023 · 1 comment
Open

Can’t cross-compile from aarch64-unknowm-linux-gnu target. #64

purpleP opened this issue Nov 8, 2023 · 1 comment

Comments

@purpleP
Copy link

purpleP commented Nov 8, 2023

I’m using ubuntu 22.04 LTS as a host.

Here’s the command I use.

env PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/ PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo check

It fails when compiling check.c. I’ve debugged enough to see that you’ve harcoded using host as target and as a result it doesn’t see arm versions of ffmpeg libraries installed for cross compilation like so apt install libav-util:arm64.

Do you support cross-compilation?

And why is your build script so complex? sys crate supposed to just create bindings. You’re trying to compile ffmpeg for some reason… Can you elaborate on that?

@zlice
Copy link

zlice commented May 17, 2024

Same issue for gifski on void aarch64 and armv7l cross compiles void-linux/void-packages#50117 (fork used in gifski is https://github.com/kornelski/rust-ffmpeg-sys-1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants