espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
766 stars 249 forks source link

IDFv-5 wont compile #327

Open Mair opened 1 year ago

Mair commented 1 year ago

Environment

Problem Description

I'm trying to compile a "hello world app" using MDF (master) and IDF V5.0 however the build breaks. I have setup the MDF_PATH enviroment variable to point to the cloned repo. After first compiling I ran into a peer dependency issue which I resolved with

idf.py add-dependency "espressif/coap^4.3.1~1"
idf.py add-dependency "espressif/mdns^1.0.8"

then after that I ran into these backwards compatibility issues

C:/esp/esp-mdf/components/mcommon/include/mdf_common.h:46:10: fatal error: esp_timer.h: No such file or directory
   46 | #include "esp_timer.h"
      |          ^~~~~~~~~~~~~
...
C:/esp/esp-mdf/components/mcommon/include/mdf_common.h:46:10: fatal error: esp_timer.h: No such file or directory
   46 | #include "esp_timer.h"
      |          ^~~~~~~~~~~~~
...
C:/esp/esp-mdf/components/mcommon/include/mdf_common.h:46:10: fatal error: esp_timer.h: No such file or directory
   46 | #include "esp_timer.h"
      |          ^~~~~~~~~~~~~
...
C:/esp/esp-mdf/components/mcommon/include/mdf_common.h:46:10: fatal error: esp_timer.h: No such file or directory
   46 | #include "esp_timer.h"
...
C:/esp/esp-mdf/components/mconfig/mconfig_chain.c:17:10: fatal error: mbedtls/md5.h: No such file or directory
   17 | #include "mbedtls/md5.h"
      |          ^~~~~~~~~~~~~~~
...
C:/esp/esp-mdf/components/mcommon/include/mdf_common.h:58:10: fatal error: driver/i2c.h: No such file or directory
   58 | #include "driver/i2c.h"

I went into the menuconfig and tried to set the "configENABLE_BACKWARD_COMPATIBILITY" flag without any luck

Expected Behavior

Should be able to build

Actual Behavior

Build breaks

Steps to reproduce

  1. Install IDF v5 per getting started instructions
  2. Install MDF per getting started instructions
  3. create hello world project
  4. compile
mmrein commented 1 year ago

@Mair Some notes I made earlier that could help you: https://github.com/espressif/esp-mdf/issues/278#issuecomment-1211785061

Mair commented 1 year ago

@mmrein Thanks for that. Although Ideally it would be nice if it "just worked" none the less your answer is apricated