Error when building

You might find useful information on using esp idf and Arduino, here on this thread: Framework = espidf, arduino

Cheers,
Norm.