-
Notifications
You must be signed in to change notification settings - Fork 53
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
Make esp-idf-template
The source of Truth w.r.t. Detailed Installation (Was: Cannot compile generated templates:)
#237
Comments
Hm, that's very weird, because the Are you absolutely sure you are building against ESP IDF 5.2? Are you sure that you don't have an activated ESP IDF in the same shell where you are trying to build? |
I think I'm on 5.4, is that the probable cause of the issue? And how can I downgrade? |
Yes, that's the cause. 5.4 is not even released yet. |
It is coming from https://github.com/espressif/esp-idf 's I guess solving it is just a matter of setting my local clone of esp-idf to Thanks for your help, I'll try immediately with v5.2.2 |
Using an activated ESP IDF is possible, but is an advanced setting. But if you are just starting with ESP-IDF: you don't have to download, configure etc. ESP IDF. In other words, see this note in the esp-rs book: https://docs.esp-rs.org/book/installation/std-requirements.html |
Thanks a lot. I'm indeed just getting started with ESP-IDF: does that mean RISC-V and Xtensa targets most likely doesn't apply to me? I had no idea what they were so I figured I probably needed them, as they were appearing before the |
Btw if you are using an activated edp idf, make sure the |
What does FYI I followed https://docs.esp-rs.org/book/installation/std-requirements.html -> |
I don't find a single place in the esp-rs Book that suggests that you have to manually clone and activate an ESP IDF. While that's possible and we support it, we don't actively suggest it as this is another variable, and also most Rust users don't want to deal explicitly with ESP IDF anyway. Would you agree that the Book does not suggest this, or can you point me to the location in the book which suggests that, so that we can erase it? |
I followed https://docs.esp-rs.org/book/installation/std-requirements.html -> macOS: See macOS ESP-IDF prerequisites -> |
The link you are referring to ( https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#for-macos-users ) is to one specific paragraph in the whole page (part of Step 1), which is asking you to install cmake and ninja. And in fact even this is not necessary. @SergioGasquez @Vollbrecht can we remove this link in the STD book and just copy paste explicitly the tools one needs to install? |
@SergioGasquez I have an even better proposal: how about we just link - from the STD book - to the README.md of This way we have a single place to worry about w.r.t. installations and hopefully less users being confused. |
Circular dependency inside the esp-idf-template README here 😂 Quote "For detailed instructions see Setting Up a Development Environment chapter of The Rust on ESP Book. " Yeah i think the prerequest tools were added before i know that everything essentially is installed via python installer anyway. |
I know but we'll remove the "For detailed instructions" too. I think |
FYI it was not clear at all to me that it was either:
I thought I had to follow all the ESP Rust book instructions, and then the template was plugged onto it using my existing installation. I had no idea I was able to follow only the template README and make it work |
esp-idf-template
The source of Truth w.r.t. Detailed Installation (Was: Cannot compile generated templates:)
OK, let's keep this issue open (I renamed it appropriately) and track here
|
Doesn't that section of the README suggest to use an activated ESP IDF too? |
How? ESP IDF uses GCC. And this section does not even mention ESP IDF. |
the "export-esp.sh" here is not the same "export.sh" from esp-idf and is used for espup specifics around the xtensa rust toolchain. In other words it exports this
so its not related here |
You are confusing esp idfs |
And not to mention that this script modifying the path variable is completely unnecessary for |
What about making the book(rust on esp book) the source of truth and then point to it from |
I'm not sure for the very same reasons I outlined - in my mind, a "book" needs to be a tad more conceptual. Also, I'm still hoping that in future we'll have all This means, any change to the build process of The book on the other hand is a separate repo. If you wish, we can also discuss where to go on the forthcoming meeting in Oct. |
Yes, let's discuss this on the community meeting! |
Bug description
Newly generated templates do not compile, as
esp_idf_svc
seems to require an incompatible version ofesp_idf_hal
.To Reproduce
Steps to reproduce the behavior:
cargo generate esp-rs/esp-idf-template cargo
:cargo build
esp-idf-svc
:Expected behavior
Generating a new project and building it works without compilation errors
Environment
cargo --version
:cargo 1.81.0 (2dbb1af80 2024-08-20)
Additional context
Cargo.lock
The text was updated successfully, but these errors were encountered: