dani007200964 / Commander-API

Commander-API is a simple to use C++ parser library and you can easily use it to process character based commands
MIT License
24 stars 4 forks source link

Commander-API-Commands error Wire.h: No such file or directory #22

Closed hpsaturn closed 4 months ago

hpsaturn commented 4 months ago

Summary

Using PlatformIO we have a typical error around this header. Only we need a validation of architecture to fix that. Let me send a PR with the proposal.

To Reproduce

On platformIO run any sample with target esp32 or esp32c3 and you will have the next output:

Compiling .pio/build/esp32/lib23b/Commander-API/Commander-IO.cpp.o
In file included from .pio/libdeps/esp32/Commander-API/src/Commander-API-Commands.cpp:34:
.pio/libdeps/esp32/Commander-API/src/Commander-API-Commands.hpp:37:10: fatal error: Wire.h: No such file or directory

**************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Wire.h"
* Web  > https://registry.platformio.org/search?q=header:Wire.h
*
**************************************************************

 #include "Wire.h"
          ^~~~~~~~
compilation terminated.
Compiling .pio/build/esp32/libe91/Shellminator/Shellminator-IO.cpp.o
*** [.pio/build/esp32/lib23b/Commander-API/Commander-API-Commands.cpp.o] Error 1

Also you can run the sample submitted on the issue: https://github.com/dani007200964/Shellminator/issues/19