Demo widget problem

Description

What MCU/Processor/Board and compiler are you using?

STM32F407Discovery. Atollic TrueSTUDIO. Compiller gnu11(C11+gnu extentions.

What LVGL version are you using?

Configuration file for v7.10.1

What do you want to achieve?

Embed lv_demo_widgets in my project.

What have you tried so far?

Successfully connected the LVGL library to the project. With its help I can draw various graphic elements. The next step I decided to add a folder with lv_demo_widgets files to the project. When compiling the code, a lot of errors appear and I cannot figure out how to fix them.
In the lv_examples.h file I select #define LV_USE_DEMO_WIDGETS 1 I believe that by this action I enable demo widgets and during compilation I get a huge number of errors.

And here are the mistakes themselves.

Maybe I built the project tree incorrectly?
Please help me fix the errors, I cannot understand why they arise. Thank!

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

1

Problem solved. In the lv_demo_widgets.c file, it was necessary to add this line #include “…/src/lvgl/lvgl.h”. Then everything worked.