Skip to content

freertos/Mutex.hpp: No such file or directory #10

Open
@gmkado

Description

@gmkado

Hello, I'm trying to use this library in platformio with my ESP32 WROOM.

I tried to create a minimum repro. Here is my platform.ini:

[env:sparkfun_thing_bluetooth]
platform = espressif32
board = sparkfun_esp32s2_thing_plus_c
framework = arduino
lib_deps = 
	igor-krechetov/hsmcpp@^1.0.1

custom_hsm_files=./blink.scxml:BlinkHsm:Base
custom_hsm_gendir=./src

Other than the platform and board, I believe this is identical to the example.

It generated the BlinkHsmBase cpp and header files (very cool!) but fails to compile:

Compiling .pio\build\sparkfun_thing_bluetooth\liba67\hsmcpp\HsmEventDispatcherArduino.cpp.o
Compiling .pio\build\sparkfun_thing_bluetooth\liba67\hsmcpp\HsmEventDispatcherBase.cpp.o
In file included from .pio/libdeps/sparkfun_thing_bluetooth/hsmcpp/include/hsmcpp/HsmEventDispatcherBase.hpp:13,
                 from .pio/libdeps/sparkfun_thing_bluetooth/hsmcpp/include/hsmcpp/HsmEventDispatcherArduino.hpp:10,
                 from .pio/libdeps/sparkfun_thing_bluetooth/hsmcpp/include/hsmcpp.hpp:8,
                 from src/main.cpp:5:
.pio/libdeps/sparkfun_thing_bluetooth/hsmcpp/include/hsmcpp/os/Mutex.hpp:9:11: fatal error: freertos/Mutex.hpp: No such file or directory
  #include "freertos/Mutex.hpp"
           ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\sparkfun_thing_bluetooth\src\main.cpp.o] Error 1

#if defined(FREERTOS_AVAILABLE)

I tried digging into this error and found that INC_FREERTOS_H is being defined here:
~.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\include\freertos\include\freertos\FreeRTOS.h:

Apparentl this board is using freeRTOS under the hood. But like the error message suggests, I'm not able to find any associated file freertos/Mutex.hpp.

Any ideas what I should try? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions