Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue main.cpp #3

Open
PeX-tech opened this issue Dec 10, 2021 · 2 comments
Open

Installation issue main.cpp #3

PeX-tech opened this issue Dec 10, 2021 · 2 comments

Comments

@PeX-tech
Copy link

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
Copy link
Author

Any Ideas how to fix this?
Much appreciated!

@PeX-tech
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant