Issues migrating from IDF 3.x to IDF 4

wnoliveira
Posts: 9
Joined: Wed Feb 06, 2019 6:45 pm

Issues migrating from IDF 3.x to IDF 4

Postby wnoliveira » Mon Sep 23, 2019 12:47 pm

Hi all.

I recently tried to migrate a project that was made on IDF 3 and the classic gnu make build system to IDF 4 and CMAKE. It's just impossible to me. My project stop working with many failures (such as spi display stop working and some more).

Does anyone know if there is a tutorial or known issues when migrating from IDF 3 to 4?

Thank you in advance.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Issues migrating from IDF 3.x to IDF 4

Postby ESP_Angus » Mon Oct 07, 2019 11:29 pm

Hi wnoliveira,

Thanks for being patient while someone got back to you (the Chinese National holiday just finished).

I don't know if it will be helpful in this case, but there's a summary of breaking changes in the v4.0-beta1 release notes:
https://github.com/espressif/esp-idf/re ... v4.0-beta1

Can you please give more details about the exact errors you're seeing when you build?

ESP-IDF v4.0 still supports the GNU Make build system, so if you can then I suggest breaking your task into two parts - first get the IDF v3.x project to work with ESP-IDF v4.0 and GNU Make, and then convert the working IDF v4.0 project to use CMake.

If you're getting errors about header files not being found, this may be because in CMake each component has to declare the component(s) that it depends on. There is some documentation about this (and an example) in the docs here:
https://docs.espressif.com/projects/esp ... quirements

Angus

Who is online

Users browsing this forum: Dhruvit, Konstantin and 149 guests