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

IDFv-5 wont compile #327

Open
Mair opened this issue Mar 17, 2023 · 2 comments
Open

IDFv-5 wont compile #327

Mair opened this issue Mar 17, 2023 · 2 comments

Comments

@Mair
Copy link

Mair commented Mar 17, 2023

Environment

  • MDF version: cf50274 / v1.0-156-gcf50274 (master)
  • IDF Version: v5.0
  • Development Env: VSCode +IDF extension
  • Operating System: [Windows 11]

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
Copy link

mmrein commented Mar 17, 2023

@Mair Some notes I made earlier that could help you: #278 (comment)

@Mair
Copy link
Author

Mair commented Mar 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants