espressif/esp32-arduino-lib-builder

Fails to build on Ubuntu 22 with dependency issue

blind-oracle opened this issue · 4 comments

Ubuntu 22.

Does not build with the following error:

CMake Error at esp-idf/tools/cmake/build.cmake:463 (message):
  ERROR: Because project depends on idf (>=5.0.0,<5.1.0) which doesn't match
  any versions, version solving failed.

The same happens on MacOS

rtrbt commented

Same here. Are you building the release/v4.4 branch? esp-dl released a new version (2.0) that requires ESP-IDF 5.0. Running

git switch release/v1.1

in components/esp-dl fixed this for me.

Yes, now it works, thanks!

branch release/v5.1 is based on IDF 5.1 (which does not match the requirement 5.0<5.1). branch release/v4.4 is based on IDF 4.4.x and release/v3.3 is based on very old IDF v3.3. I guess none of the branches will work for you as-is, but best bet is to use the release/v5.1 branch and update the component that requires it to be less than 5.1

Debian 12 - same problem. As I understand it, this is due to the fact that git downloads the "master" version, which points to release 4.4, not 5.1