-
Notifications
You must be signed in to change notification settings - Fork 43
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
Build issues on ESP32-C3 #42
Comments
This comment was marked as outdated.
This comment was marked as outdated.
The simplest solution to rustix is to compile |
I had created an example that built on ESP32 (https://github.com/kedars/matter-rs/blob/master/examples/esp-onoff-light/Cargo.toml). The crypto part was all nullified, but the build was functional. It was quite an old version of the matter-rs so, but in case it helps your investigations. |
Thank you, I hadn't seen that. I've taken a brief look at it, it'll help me build an example once I've sorted out the deps. |
@kedars after resolving dependency issues, building fails because of the #[cfg(target_os = "macos")]
mod sys_macos;
#[cfg(target_os = "macos")]
pub use self::sys_macos::*;
#[cfg(target_os = "linux")]
mod sys_linux;
#[cfg(target_os = "linux")]
pub use self::sys_linux::*;
#[cfg(any(target_os = "macos", target_os = "linux"))]
mod posix;
#[cfg(any(target_os = "macos", target_os = "linux"))]
pub use self::posix::*; So I was unsure of how to proceed from there. When building with hte esp Rust target, Cargo sets |
Yes, those things got introduced later on. You'll have to create the sys_espidf target, and implement the Psm and mDNS APIs. For now, you can just keep them empty? |
That's a reasonable approach, I'll do that, thanks. |
@kedars We should probably close this, because the two new branches compile for ESP IDF just fine. |
Yes |
@nevi-me Were you successful in running either of the branches on an ESP32 MCU? |
I haven't checked yet, I'll have time properly in the weekend. I'll confirm on Matrix when I've done so. |
I'm unable to use the project as a dependency on an ESP32 based project.
Please see a minimal reproduction at https://github.com/nevi-me/esp32-c3-matter-minimal. The summary is that some of the dependencies don't yet support the esp-idf framework. The
esp-rs
folks are aware of some of them, as there are forks at https://github.com/esp-rs-compat.The text was updated successfully, but these errors were encountered: