Hello
I’m trying to use de dcsbios on PlatformIO, the library was add an when tryied to compile the error "cannot open source file “Servo.h” (dependency of “DcsBios.h”) " was reported back.
The library used was
some advice on how to fix this issue?
Hello
I’m trying to use de dcsbios on PlatformIO, the library was add an when tryied to compile the error "cannot open source file “Servo.h” (dependency of “DcsBios.h”) " was reported back.
The library used was
some advice on how to fix this issue?
Since the library using #ifdef / #ifndef blocks to mask out the inclusion of certain libraries, you must use library dependency finder mode that evaluates these macros. By default, it’s not.
#ifndef DCSBIOS_DISABLE_SERVO
#include "internal/Servos.h"
#endif
→
lib_ldf_mode = chain+
in platformio.ini.
https://docs.platformio.org/en/latest/librarymanager/ldf.html#ldf-mode