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

Must provide PYO3_CROSS_LIB_DIR environment variable #556

Closed
jdaruja opened this issue May 12, 2021 · 6 comments
Closed

Must provide PYO3_CROSS_LIB_DIR environment variable #556

jdaruja opened this issue May 12, 2021 · 6 comments
Labels
A-config Area: cross-toml config

Comments

@jdaruja
Copy link

jdaruja commented May 12, 2021

Have set environment variable "PYO3_CROSS_LIB_DIR" using export PYO3_CROSS_LIB_DIR = "/usr/lib"
But getting below error.

Error: "Must provide PYO3_CROSS_LIB_DIR environment variable when cross-compiling"

@mfaccin
Copy link

mfaccin commented Jan 8, 2022

hi, did you solve this issue @jdaruja ?

@jdaruja
Copy link
Author

jdaruja commented Jan 9, 2022

No, so i dropped it

@Emilgardis
Copy link
Member

cross doesn't pass environment variables by default. See https://github.com/rust-embedded/cross#passing-environment-variables-into-the-build-environment

@jdaruja
Copy link
Author

jdaruja commented Jan 10, 2022

Thank you very much for the link. Its working

@jdaruja jdaruja closed this as completed Jan 10, 2022
@mfaccin
Copy link

mfaccin commented Jan 10, 2022

hey @Emilgardis @jdaruja sorry for the noob question. I'm trying to cross-compile to an aarch64 architecture, how can I get the already compiled versions or the files that I should point to?

@Alexhuszagh Alexhuszagh added enhancement A-config Area: cross-toml config and removed enhancement labels Nov 6, 2022
@Alexhuszagh
Copy link
Contributor

Alexhuszagh commented Nov 6, 2022

@mfaccin That's unrelated to the issue at hand: please open a discussion. Note that you can use custom Dockerfiles which support copying local files in the current context over to the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: cross-toml config
Projects
None yet
Development

No branches or pull requests

4 participants