qix67 / comfortzone_heatpump

Arduino library to monitor and control Comfortzone EX50 heatpump
GNU General Public License v3.0
8 stars 5 forks source link

Compilation error #4

Closed kalaws closed 1 year ago

kalaws commented 1 year ago

So in trying to compile this through esphome, I get the following error, even though I have included FastCRC in the platformio.ini file. Before I had included it, I got the error earlier on in the process, so perhaps it is sometimes accessed, sometimes not?

In file included from /data/comfortzone/.piolibdeps/comfortzone/comfortzone_heatpump/comfortzone_crafting.cpp:1:
/data/comfortzone/.piolibdeps/comfortzone/comfortzone_heatpump/comfortzone_heatpump.h:28:10: fatal error: FastCRC.h: No such file or directory

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

   28 | #include <FastCRC.h>
      |          ^~~~~~~~~~~
compilation terminated.
*** [/data/comfortzone/.pioenvs/comfortzone/libd4e/comfortzone_heatpump/comfortzone_crafting.cpp.o] Error 1
In file included from /data/comfortzone/.piolibdeps/comfortzone/comfortzone_heatpump/comfortzone_decoder.cpp:1:
/data/comfortzone/.piolibdeps/comfortzone/comfortzone_heatpump/comfortzone_heatpump.h:28:10: fatal error: FastCRC.h: No such file or directory

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

   28 | #include <FastCRC.h>
      |          ^~~~~~~~~~~
compilation terminated.
*** [/data/comfortzone/.pioenvs/comfortzone/libd4e/comfortzone_heatpump/comfortzone_decoder.cpp.o] Error 1
kalaws commented 1 year ago

Ok, so that was solved by putting the FastCRC.h file manually inside the comfortzone_heatpump folder and then compile.

qix67 commented 1 year ago

I am using teensyduino which comes with FastCRC natively.

AFAIK, a such error is due to a missing path somewhere.

jenshorn commented 1 year ago

Hi @kalaws, did you get it to work with ESPHome? Would you mind sharing the setup you used?

kalaws commented 1 year ago

No, sorry, still waiting for someone with greater coding skills :)