Page 1 of 1

Using IDF APIs within MDF project

Posted: Fri Jan 08, 2021 9:31 pm
by ellhan00
I am trying to add the esp_a2dp_api.h file into the MDF get-started project, but when compiling I get the error

Code: Select all

fatal error: esp_a2dp_api.h: No such file or directory #include "esp_a2dp_api.h"

I assume this is because my CMakeList.txt file only has

Code: Select all

include($ENV{MDF_PATH}/project.cmake)
and not

Code: Select all

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
, but when adding this, I get a

Code: Select all

Maximum recursion depth of 1000 exceeded
error.

How exactly can I include IDF APIs (specifically the A2DP API) when working within an MDF project?