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

esp-idf-sys fails to build because of CMake version #233

Closed
MathyV opened this issue Aug 14, 2023 · 1 comment
Closed

esp-idf-sys fails to build because of CMake version #233

MathyV opened this issue Aug 14, 2023 · 1 comment

Comments

@MathyV
Copy link

MathyV commented Aug 14, 2023

On an older system (in this case Mint Una), where cmake < 3.20, the build will fail claiming that you need at least version 3.20 of cmake. Embuild installs a custom cmake in ~/.espressif/tools/cmake but it doesn't seem to be used (in all cases?).

A workaround is adding export PATH="${HOME}/.espressif/tools/cmake/3.24.0/bin/:${PATH}" to export-esp.sh, after which the build does go through.

The version installed in the system is 3.16 btw. Mint Una and Ubuntu Focal on which it is based are LTS until April 2025.

@Vollbrecht
Copy link
Collaborator

With the updated embuild crate we now make sure in the installation step of the tools, that a proper version is installed, and we also export them automatically in such a way that this version is used over the version potentially provided by the system.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants