sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
228 stars 121 forks source link

DimSwitch example compilation fails on Ubuntu #251

Closed scamper07 closed 2 years ago

scamper07 commented 2 years ago

Thanks for the awesome service.

Found one issue. Installed the latest version (2.9.15) in Arduino using Library Manager (Ubuntu 20.04) and tried to compile DimSwitch. It fails with

/home/pre/Arduino/libraries/SinricPro/src/SinricProDimSwitch.h:12:10: fatal error: Capabilities/PowerstateController.h: No such file or directory
 #include "Capabilities/PowerstateController.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.

Capabilities/PowerstateController.h should be changed to Capabilities/PowerStateController.h in SinricProDimSwitch.h Tested the change and now compilation works

sivar2311 commented 2 years ago

Thanks for pointing that out. This is because the filename case sensivitiy in linux :-/ I will fix this in the next release 2.9.17 - current release is 2.9.16

sivar2311 commented 2 years ago

Hi @scamper07! The fix is now in the master branch. It will be automatically included in the next release 2.9.17. Therefore, I am closing this issue.

Thank you very much for your contribution!