Skip to content

using mdns with esp-idf v4 & v5 (IDFGH-7964) #9477

Description

@nopnop2002

Environment

$ idf.py --version
ESP-IDF v4.4.1-405-g6c5fb29c2c

Problem Description

Since ESP-IDF V5, mdns is now a component.

When using mdns with ESP-IDF V5, idf_component.yml is required.

dependencies:
  espressif/mdns: "^1.0.3"
  idf:
     version: ">=4.1.0"

An error will occur if i build same project with ESP-IDF V4.4.

  idf_component_manager.version_solver.mixology.failure.SolverFailure:
  Because no versions of espressif/mdns match >1.0.3,<1.0.4 || >1.0.4,<1.0.5
  || >1.0.5,<2.0.0

   and espressif/mdns (1.0.3) depends on idf (>=5.0), espressif/mdns (>=1.0.3,<1.0.4 || >1.0.4,<1.0.5 || >1.0.5,<2.0.0) requires idf (>=5.0).

  And because espressif/mdns (1.0.4) depends on both idf (>=5.0) and idf
  (>=5.0), espressif/mdns (>=1.0.3,<2.0.0) requires idf (>=5.0.0).

  So, because no versions of idf match >=5.0.0

   and project depends on espressif/mdns (^1.0.3), version solving failed.

Call Stack (most recent call first):
  /home/nop/esp-idf/tools/cmake/project.cmake:384 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/home/nop/rtos/esp-idf-mqtt-client/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

Is there a way to build the same project with IDF V4 and V5?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions