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

Enable Support for Cross Compilation #155

Open
GreenYun opened this issue Nov 26, 2023 · 0 comments
Open

Enable Support for Cross Compilation #155

GreenYun opened this issue Nov 26, 2023 · 0 comments

Comments

@GreenYun
Copy link

GreenYun commented Nov 26, 2023

I have suffering cross-compiling lvgl and lvgl-sys as dependencies of my project since the invocation of bindgen would always using my host toolchain.

I cannot find any better idea than rewriting the build script to add more environment variables and compiler flags.

Issue #53 gave ideas using the cross tool that is not suitable for my environment. In the situation of my work, I have no Docker environment even the toolchain is not provided by any system package manager. I have only a directory with pre-compiled Xcompiler. For normal rust projects, specifying target triples and providing linkers to rustc will get everything worked.

I wonder if there are any workarounds to provide enough information to the build system and get things worked?

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
@GreenYun and others