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

Documentation wish: Add an example of how to do cross compilation? #172

Open
bluenote10 opened this issue Nov 2, 2024 · 0 comments
Open

Comments

@bluenote10
Copy link

#109 has clarified the role of PKG_CONFIG_ALLOW_CROSS=1 and made it clear that one actually has to:

Install a sysroot for the target platform and configure it via PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a cross-compiling wrapper for pkg-config and set it via PKG_CONFIG environment variable.

It would be really great to offer two actual examples of doing these things, because they look far from trivial. I think it would suffice to pick one common combination like building on x86_64 with a target of armv7 involving e.g. libasound2, similar to this example for cross-rs.

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