phha / vitowifi_esphome

An esphome custom component for Viessmann heaters
MIT License
8 stars 3 forks source link

Installation issue main.cpp #3

Open PeX-tech opened 2 years ago

PeX-tech commented 2 years ago

Hi!

I really love this tool. However, I am having trouble compiling for my ESP 32:

`INFO Reading configuration /config/esphome/heaternode.yaml... INFO Generating C++ source... INFO Compiling app... Processing heaternode (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash Dependency Graph |-- 1.2.2 |-- 1.0.2 |-- 1.0 |-- 1.0 |-- 1.0 |-- 2.1.0 | |-- 1.2.2 |-- 1.1.0 |-- 1.0 Compiling /data/heaternode/.pioenvs/heaternode/src/main.cpp.o In file included from /data/heaternode/.piolibdeps/heaternode/VitoWiFi/src/DPTypes.hpp:32:0, from src/optolink/Datapoint.hpp:35, from src/optolink/VitoWiFi.hpp:37, from src/optolink/VitoWiFi.h:30, from src/optolink/optolink.h:33, from src/main.cpp:38: /data/heaternode/.piolibdeps/heaternode/VitoWiFi/src/DPValue.hpp:35:6: error: multiple definition of 'enum DPValueType' enum DPValueType { ^ In file included from src/main.cpp:37:0: src/optolink/DPValue.hpp:35:6: note: previous definition here enum DPValueType { ^ In file included from /data/heaternode/.piolibdeps/heaternode/VitoWiFi/src/DPTypes.hpp:32:0, from src/optolink/Datapoint.hpp:35, from src/optolink/VitoWiFi.hpp:37, from src/optolink/VitoWiFi.h:30, from src/optolink/optolink.h:33, from src/main.cpp:38: /data/heaternode/.piolibdeps/heaternode/VitoWiFi/src/DPValue.hpp:45:7: error: redefinition of 'class DPValue' class DPValue { ^ In file included from src/main.cpp:37:0: src/optolink/DPValue.hpp:45:7: error: previous definition of 'class DPValue' class DPValue { ^ *** [/data/heaternode/.pioenvs/heaternode/src/main.cpp.o] Error 1 ========================== [FAILED] Took 6.31 seconds ==========================`

PeX-tech commented 2 years ago

Any Ideas how to fix this? Much appreciated!

PeX-tech commented 2 years ago

I was able to fix it. Had some older version. Worked when I got all files from one source. At least it compiled. No values yet but I am working on that.