Skip to content

no freertos/FreeRTOS.h in jpeg_decoder.c (IEC-420) #618

@uraich

Description

@uraich

Answers checklist.

  • I have read the component documentation ESP-IDF Components and the issue is not addressed there.
  • I am using target and esp-idf version as defined in component's idf_component.yml
  • I have searched the issue tracker for a similar issue and not found any related issue.

Which component are you using? If you choose Other, provide details in More Information.

esp_jpeg

ESP-IDF version.

v5.5.1

Development Kit.

any esp32 board with camera

Used Component version.

1.3.1

More Information.

I try to compile the camera example in the esp32-camera component and I get:

/opt/ucc/micros/esp32/esp-idf-v5.5.1/components/bootloader/subproject/managed_components/espressif__esp_jpeg/jpeg_decoder.c:8:10: fatal error: freertos/FreeRTOS.h: No such file or directory
8 | #include "freertos/FreeRTOS.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[102/120] Building C object esp-idf/es...rom.dir/patches/esp_rom_spiflash.c.obj
ninja: build stopped: subcommand failed.
[405/628] Building C object esp-idf/ne...Files/__idf_newlib.dir/src/locks.c.obj
ninja: build stopped: subcommand failed.
Compilation failed because jpeg_decoder.c (in "bootloader" component) includes freertos/FreeRTOS.h, provided by freertos component(s).
However, freertos component(s) is not in the requirements list of "bootloader".
To fix this, add freertos to PRIV_REQUIRES list of idf_component_register call in /opt/ucc/micros/esp32/esp-idf-v5.5.1/components/bootloader/CMakeLists.txt.

I filed a bug report on the esp-idf repository but I was told to file it here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions