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

Does x11 support cross-compiling? #174

Open
nat3Github opened this issue Apr 13, 2024 · 0 comments
Open

Does x11 support cross-compiling? #174

nat3Github opened this issue Apr 13, 2024 · 0 comments

Comments

@nat3Github
Copy link

Im trying to crosscompile a project from x86 to arm64 linux
but the x11 build errors with saying it cant find library x11 despite x11 (the arm64 version) being listed on my system when checking with pkgconfig --list-all:
--- stderr
thread 'main' panicked at /home/nat3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x11-2.21.0/build.rs:42:14:
called Result::unwrap() on an Err value:
pkg-config exited with status code 1

PKG_CONFIG_PATH=/home/user/rootarm/usr/lib/aarch64-linux-gnu/pkgconfig/ PKG_CONFIG_SYSROOT_DIR=/home/user/rootarm/ PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags x11 x11 >= 1.4.99.1

The system library x11 required by crate x11 was not found.
The file x11.pc needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
PKG_CONFIG_PATH contains the following:
- /home/user/rootarm/usr/lib/aarch64-linux-gnu/pkgconfig/

HINT: you may need to install a package such as x11, x11-dev or x11-devel.

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

1 participant