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

Compilation error #1

Open
11qu1d opened this issue Oct 11, 2024 · 0 comments
Open

Compilation error #1

11qu1d opened this issue Oct 11, 2024 · 0 comments

Comments

@11qu1d
Copy link

11qu1d commented Oct 11, 2024

Hi,

First of all thank you for putting this project together.

I thought i would give it a go with my old Airgradient, but i stumbled upon an error while compiling the project:

Linking .pio\build\d1_mini_lite\firmware.elf
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.CUSTOM_DEVICE_ID+0x0): multiple definition of `CUSTOM_DEVICE_ID'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.CUSTOM_DEVICE_ID+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.bss.DISPLAY_FAHRENHEIT+0x0): multiple definition of `DISPLAY_FAHRENHEIT'; .pio\build\d1_mini_lite\src\display.cpp.o:(.bss.DISPLAY_FAHRENHEIT+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.SSID+0x0): multiple definition of `SSID'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.SSID+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.SSID_PASSWORD+0x0): multiple definition of `SSID_PASSWORD'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.SSID_PASSWORD+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.MQTT_HOST+0x0): multiple definition of `MQTT_HOST'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.MQTT_HOST+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.MQTT_USERNAME+0x0): multiple definition of `MQTT_USERNAME'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.MQTT_USERNAME+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.MQTT_PASSWORD+0x0): multiple definition of `MQTT_PASSWORD'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.MQTT_PASSWORD+0x0): first defined here
c:/users/usr/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\d1_mini_lite\src\main.cpp.o:(.data.HOASS_AUTO_DISCOVERY+0x0): multiple definition of `HOASS_AUTO_DISCOVERY'; .pio\build\d1_mini_lite\src\display.cpp.o:(.data.HOASS_AUTO_DISCOVERY+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\d1_mini_lite\firmware.elf] Error 1

I have tried this in both Mac and PC, still the same error. Quick google didn't provide any answers, plus i am not an expert with C++...

P.S.: One thing that i had to do before i could compile, was to bump the version of robtillaart/SGP30 to the latest as the one referenced doesn't seem to any more. Not sure if its related to the above.

Thanks!

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