lmarzen / esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.
GNU General Public License v3.0
2.62k stars 206 forks source link

Can't compile latest source #33

Closed ayh20 closed 1 year ago

ayh20 commented 1 year ago

Apologies for opening this as it may be something environmental. I've been running the project for a while and love it.

I've just made up a new case and in the process was swapping to a new Firebeetle, so thought i should do an update from Github. Unfortunately, it's now failing to build and i can't see why. It seems to be to do with resource references in some of the source files but everything seems to be set up as i'd expected. I've even tried playing with the LDF loader settings, creating a new PIO project, but so far no luck.

Sample error: c:/users/ayh20.000/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/dfrobot_firebeetle2_esp32e/src/_strftime.cpp.o:(.literal._Z9_strftimePcjPKcPK2tm+0x10): undefined reference to `LC_ABDAY'

Hopefully, I'm just being dense but not being a CPP programmer and new to the ESP32 platform I'm struggling to understand why it's stopped working

Thanks for any insight anyone can offer ....

Full log:

Processing dfrobot_firebeetle2_esp32e (platform: espressif32; board: dfrobot_firebeetle2_esp32e; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/dfrobot_firebeetle2_esp32e.html PLATFORM: Espressif 32 (6.1.0) > DFRobot Firebeetle 2 ESP32-E HARDWARE: ESP32 80MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

lmarzen commented 1 year ago

There were some changes to config.h, that added some new options. Try comparing your config.h to the latest config.h. It appears you might not have a valid locale defined.

lmarzen commented 1 year ago

I recently changed the capitalization of the locales. Check to see if this is the issue.

i.e. EN_US -> en_US

ayh20 commented 1 year ago

Yes, user error ;-) .. thanks, so much for the fast response.