This is most likely an issue with a very simple answer. I’m trying to move an Arduino project that uses the ArduinoJoystickLibrary (github.com/MHeironimus/ArduinoJoystickLibrary). Admittedly, the GitHub repo has a less than ideal layout for use with PlatformIO, but I see no reason why it shouldn’t work. I’ve mentioned in the platformio.ini
as such:
lib_deps =
...
https://github.com/MHeironimus/ArduinoJoystickLibrary
but upon compilation, I get this:
In file included from .piolibdeps\ArduinoJoystickLibrary\Joystick\src\Joystick.cpp:21:0:
.piolibdeps\ArduinoJoystickLibrary\Joystick\src\Joystick.h:24:35: fatal error: DynamicHID/DynamicHID.h: No such file or directory
compilation terminated.
The issue appears to be that PlatformIO isn’t able to see that the DynamicHID/DynamicHID.h
include in Joystick.h
is present as ./DynamicHID/DynamicHID.h
relative to the header file.
My first thought was to add the ./DynamicHID
folder to the include path, but it doesn’t seem like there’s a way to do that here… How can this be made to compiler properly?