tsandmann / freertos-teensy

FreeRTOS port with C++ std::thread support for ARM boards Teensy 3.5, 3.6, 4.0 and 4.1 (cortex-m4f and cortex-m7f)
95 stars 16 forks source link

PlatformIO: Can't find 'arduino_freertos.h' when using strict library compatibility mode #17

Closed pharapeti closed 1 year ago

pharapeti commented 1 year ago

Problem When the following property is specified: lib_compat_mode = strict

The PlatformIO library dependency resolved is unable to find the base 'arduino_freertos.h' header file. src/main.cpp:2:12: fatal error: arduino_freertos.h: No such file or directory

Steps to reproduce:

  1. Open blink example within examples/blink
  2. Specify strict library compatibility mode within the platformio.ini file (ex: under teensy4.0)
  3. Try to build project and expect to see same error as above

Potential Solutions I suspect the file structure used in this repo does not follow the typical 'PlatformIO library' directory structure. As such, P.IO struggles to identify the header file.

This may also be fixed by using an appropriate P.IO library dependency finder mode - however I haven't tested this fully.

tsandmann commented 1 year ago

Should be fixed now, thanks for reporting this.