Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
965 stars 227 forks source link

Problems to compile #381

Open Kristian-12345 opened 3 years ago

Kristian-12345 commented 3 years ago

Hello Edzelf,

sorry to bother you again. I have problems to compile the sketch on Linux in the Arduino environment. I suppose to have installed all needed Libs, But compiling terminates with an error: "'ATTR_HIDDEN' was not declared in this scope"

Do you know what might be the problem?

Thanks Kristian

In file included from /home/kf/Arduino/ESP32-Radio-master/Esp32_radio/Esp32_radio.ino:1135:0: /tmp/arduino_build_758724/sketch/CH376.h: In function 'int listusbtracks(const char*, int, bool)': CH376.h:387:19: error: 'ATTR_HIDDEN' was not declared in this scope if ( attr & ( ATTR_HIDDEN | ATTR_SYSTEM ) ) // Skip hidden or system files/directories ^ CH376.h:387:33: error: 'ATTR_SYSTEM' was not declared in this scope if ( attr & ( ATTR_HIDDEN | ATTR_SYSTEM ) ) // Skip hidden or system files/directories ^ CH376.h:393:17: error: 'ATTR_DIRECTORY' was not declared in this scope if ( attr & ATTR_DIRECTORY ) // Is it a directory? ^ Mehrere Bibliotheken wurden für "ArduinoOTA.h" gefunden Benutzt: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/ArduinoOTA Nicht benutzt: /home/kf/Arduino/libraries/ArduinoOTA Mehrere Bibliotheken wurden für "Adafruit_GFX.h" gefunden Benutzt: /home/kf/Arduino/libraries/Adafruit_GFX_Library Nicht benutzt: /home/kf/Arduino/libraries/Adafruit-GFX-Library Mehrere Bibliotheken wurden für "SD.h" gefunden Benutzt: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/SD Nicht benutzt: /home/kf/arduino-1.8.12/libraries/SD Bibliothek PubSubClient in Version 2.8 im Ordner: /home/kf/Arduino/libraries/PubSubClient wird verwendet Bibliothek WiFi in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi wird verwendet Bibliothek ESPmDNS in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/ESPmDNS wird verwendet Bibliothek SPI in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/SPI wird verwendet Bibliothek ArduinoOTA in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/ArduinoOTA wird verwendet Bibliothek Update in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/Update wird verwendet Bibliothek Adafruit_ST7735_and_ST7789_Library in Version 1.6.0 im Ordner: /home/kf/Arduino/libraries/Adafruit_ST7735_and_ST7789_Library wird verwendet Bibliothek Adafruit_GFX_Library in Version 1.10.1 im Ordner: /home/kf/Arduino/libraries/Adafruit_GFX_Library wird verwendet Bibliothek Ch376msc in Version 1.4.4 im Ordner: /home/kf/Arduino/libraries/Ch376msc wird verwendet Bibliothek FS in Version 1.0 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/FS wird verwendet Bibliothek SD in Version 1.0.5 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/SD wird verwendet Bibliothek Adafruit_BusIO in Version 1.5.0 im Ordner: /home/kf/Arduino/libraries/Adafruit_BusIO wird verwendet Bibliothek Wire in Version 1.0.1 im Ordner: /home/kf/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/Wire wird verwendet exit status 1 'ATTR_HIDDEN' was not declared in this scope

Edzelf commented 3 years ago

Hello Kristian,

Fixed. The new ch375msc library changed the definitions names of the file attributes.

By the way: if you are not using the CH376, you may comment/delete line 169 containing: #define CH376 // For CXH376 support (reading files from USB stick)