-
Notifications
You must be signed in to change notification settings - Fork 125
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
Unable to create a working environment. #23
Comments
What version of |
Just the one that rust-esp32-std-demo uses: 0.21.1 https://github.com/ivmarkov/rust-esp32-std-demo/blob/main/Cargo.toml#L58: esp-idf-sys = { version = "0.21.1", features = ["binstart"] } There does seem to be a newer one out. |
If you are on windows, this could also be a long file path issue. Maybe try out the |
It seems that And failing that, I'll patch the libraries, and bump the version for all of them. |
I'll go install |
This really shouldn't happen, cmake is somehow not getting the correct You could try printing the One issue that could cause this is if you have |
Ok, after some troubleshooting, it's definitely because I have The problematic code is in embuild. However, that's not all. I'm going to assume the -I args are wrong, so I'll start looking through them. |
I think you're running into windows path length limitations: see Microsoft docs. |
I've created a new release that should fix this issue. I guess the first workaround that I implemented to circumvent issues with msys or cygwin on Windows was not that great, but these problems should be fixed now. |
@Jezza The first error is caused by too long build path. Move the project to shorter path. This is known limitation of Windows build via Platform IO. It's quite misleading that it fails on libsodium. The libsodium is the first library which has files on very long paths, so the build fails there. |
@georgik I'm not building it with Platform IO anymore, I switched to The current issue I'm facing is still being unable to find headers: |
Just FYI @Jezza Long Paths on Windows does not solve the problem. For some unknown reason this setting is ignored during the build. |
Ah, I see. |
With a little bit of research this seems to be a Possible workarounds:
If this is a common issue, it may be worth trying to implement a workaround (for example forcing cmake to use relative paths, creating directory junctions ourselves, etc.). |
Closing due to inactivity, I hope that by now all the issues are resolved. Please file another if this is not the case. |
This might link to esp-rs/rust-build#8, as I haven't installed ESP-IDF yet.
But I'm unable to compile libsodium.
The text was updated successfully, but these errors were encountered: