ESP32Radio-V2 icon indicating copy to clipboard operation
ESP32Radio-V2 copied to clipboard

Library Issue?

Open buddyroar opened this issue 2 years ago • 4 comments

I re-downloaded the code and received a new error similar to last time.

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 115200, None, Disabled"

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\VS1053\VS1053.cpp.o:(.literal._ZN6VS10538testCommEPKc+0x18): undefined reference to `dbgprint(char const*, ...)'

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\VS1053\VS1053.cpp.o: in function `VS1053::testComm(char const*)':

C:\Users\Buddy\Documents\Arduino\libraries\VS1053/VS1053.cpp:112: undefined reference to `dbgprint(char const*, ...)'

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Buddy\Documents\Arduino\libraries\VS1053/VS1053.cpp:113: undefined reference to `dbgprint(char const*, ...)'

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Buddy\Documents\Arduino\libraries\VS1053/VS1053.cpp:132: undefined reference to `dbgprint(char const*, ...)'

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Buddy\Documents\Arduino\libraries\VS1053/VS1053.cpp:142: undefined reference to `dbgprint(char const*, ...)'

c:/users/buddy/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\VS1053\VS1053.cpp.o:C:\Users\Buddy\Documents\Arduino\libraries\VS1053/VS1053.cpp:293: more undefined references to `dbgprint(char const*, ...)' follow

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "WiFi.h"

Used: C:\Users\Buddy\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.6\libraries\WiFi

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi

exit status 1

Error compiling for board DOIT ESP32 DEVKIT V1.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

buddyroar avatar Jun 06 '23 18:06 buddyroar

I am using a 128 x 160 LCD display with a ST7735S Driver Chip - along with the Adafruit ST7735 and ST7789 library.

buddyroar avatar Jun 06 '23 18:06 buddyroar

"dbgprint" is no longer used in this project. So you have the wrong version of VS1053.cpp. So check C:\Users\Buddy\Documents\Arduino\libraries\VS1053.

Edzelf avatar Jun 06 '23 19:06 Edzelf

I have used various VS1053 libraries to no avail. One that was promising was https://github.com/baldram/ESP_VS1053_Library however, I am still getting problems. Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 115200, None, Disabled"

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino: In function 'void setup()':

ESP32Radio:2688:5: error: 'VS1053_begin' was not declared in this scope

 VS1053_begin ( ini_block.vs_cs_pin,                  // Make instance of player and initialize

 ^~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:2688:5: note: suggested alternative: 'VS1053_H'

 VS1053_begin ( ini_block.vs_cs_pin,                  // Make instance of player and initialize

 ^~~~~~~~~~~~

 VS1053_H

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino: In function 'void spfuncs()':

ESP32Radio:3326:7: error: 'player_setVolume' was not declared in this scope

   player_setVolume ( 0 ) ;                                  // Mute

   ^~~~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:3326:7: note: suggested alternative: 'playlist_num'

   player_setVolume ( 0 ) ;                                  // Mute

   ^~~~~~~~~~~~~~~~

   playlist_num

ESP32Radio:3330:7: error: 'player_setVolume' was not declared in this scope

   player_setVolume ( ini_block.reqvol ) ;                   // Unmute

   ^~~~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:3330:7: note: suggested alternative: 'playlist_num'

   player_setVolume ( ini_block.reqvol ) ;                   // Unmute

   ^~~~~~~~~~~~~~~~

   playlist_num

ESP32Radio:3335:7: error: 'player_setTone' was not declared in this scope

   player_setTone ( ini_block.rtone ) ;                      // Set SCI_BASS to requested value

   ^~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:3335:7: note: suggested alternative: 'timer_settime'

   player_setTone ( ini_block.rtone ) ;                      // Set SCI_BASS to requested value

   ^~~~~~~~~~~~~~

   timer_settime

ESP32Radio:3345:23: error: 'player_getVolume' was not declared in this scope

   displayvolume ( player_getVolume() ) ;                    // Show volume on display

                   ^~~~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:3345:23: note: suggested alternative: 'timer_gettime'

   displayvolume ( player_getVolume() ) ;                    // Show volume on display

                   ^~~~~~~~~~~~~~~~

                   timer_gettime

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino: In function 'const char* analyzeCmd(const char*, const char*)':

ESP32Radio:4084:26: error: 'player_getVolume' was not declared in this scope

   ini_block.reqvol = player_getVolume() +         // Up/down by 0.5 or more dB

                      ^~~~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino:4084:26: note: suggested alternative: 'timer_gettime'

   ini_block.reqvol = player_getVolume() +         // Up/down by 0.5 or more dB

                      ^~~~~~~~~~~~~~~~

                      timer_gettime

ESP32Radio:4206:5: error: 'player_AdjustRate' was not declared in this scope

 player_AdjustRate ( ivalue ) ;                    // Yes, adjust

 ^~~~~~~~~~~~~~~~~

C:\Users\Buddy\Downloads\ESP32Radio\ESP32Radio.ino: In function 'void playtask(void*)':

ESP32Radio:4372:20: error: 'vs1053player' was not declared in this scope

       while ( !vs1053player->data_request() )                   // If hardware FIFO is full..

                ^~~~~~~~~~~~

ESP32Radio:4386:11: error: 'vs1053player' was not declared in this scope

       vs1053player->playChunk ( inchunk.buf,                    // DATA, send to player

       ^~~~~~~~~~~~

Multiple libraries were found for "WiFi.h"

Used: C:\Users\Buddy\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.6\libraries\WiFi

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi

exit status 1

'VS1053_begin' was not declared in this scope

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

buddyroar avatar Jun 07 '23 15:06 buddyroar

No need to import an VS1053 library from another source. It is available in the /lib/codecs directory: afbeelding

Edzelf avatar Jun 07 '23 15:06 Edzelf