Using IDF APIs within MDF project

ellhan00
Posts: 1
Joined: Fri Jan 08, 2021 9:21 pm

Using IDF APIs within MDF project

Postby ellhan00 » Fri Jan 08, 2021 9:31 pm

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?

Who is online

Users browsing this forum: No registered users and 8 guests