Description
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
hsmcpp/include/hsmcpp/os/Mutex.hpp
Line 8 in 91b791d
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!