HarryVienna / WeatherStation-ESP32-BaseStation

ESP32 Weather Station with Weather Forecast, Wireless Sensors and Air Quality Measurement
https://www.haraldkreuzer.net/en/news/esp32-weather-station-weather-forecast-wireless-sensors-and-air-quality-measurement
GNU General Public License v3.0
17 stars 0 forks source link

Kann das leider nicht mit PlatformIO kompalieren #1

Open ats3788 opened 9 months ago

ats3788 commented 9 months ago

Platform IO meckert das es keine main.cpp findet im src Ordner, schreiben sie die Antwort ruhig in Englisch or translate my question with Google Translate

kommando828 commented 8 months ago

I believe the file you need is here

https://github.com/HarryVienna/Makerfabs-Sunton-ESP32-S3-7-Display-with-LovyanGFX-and-LVGL/tree/develop/src

Just getting started and my first issue was the board not being recognised on build so when searching how to add the sunton-s3 I came across this earlier github. Hopefully copying and entering this main.cpp into src folder will be the fix you need.

kommando828 commented 8 months ago

Odd, I added the file so platformio recognised the sunton_s3 board and without adding main.cpp I proceeded to a build. I got 2 warnings but no fatal error and the build finished.

Anyway the 2 warnings were

.pio/libdeps/esp32dev/lvgl/src/core/lv_obj.c: In function 'lv_init': .pio/libdeps/esp32dev/lvgl/src/core/lv_obj.c:152:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
char * txt = "Á"; ^~~~

and

.pio/libdeps/esp32dev/lvgl/src/widgets/lv_checkbox.c: In function 'lv_checkbox_constructor': .pio/libdeps/esp32dev/lvgl/src/widgets/lv_checkbox.c:125:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] cb->txt = "Check box"; ^