Hello people
I actually have a problem to compile and program the sample code from XT_DAC_Audio on a ESP32
I use Arduino IDE 2.2.2
I have downloaded the archive : https://www.xtronical.com/wp-content/up ... -4_2_1.zip
I have downloaded the board ESP32 Dev Module
When I try to verify the sample code "PlayWav" from the archive, i get this error message :
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o:(.literal._Z4loopv+0xc): undefined reference to `XT_DAC_Audio_Class::FillBuffer()'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o:(.literal._Z4loopv+0x10): undefined reference to `XT_DAC_Audio_Class::Play(XT_PlayListItem_Class*)'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o:(.literal.startup._GLOBAL__sub_I_Force+0x4): undefined reference to `XT_Wav_Class::XT_Wav_Class(unsigned char const*)'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o:(.literal.startup._GLOBAL__sub_I_Force+0x8): undefined reference to `XT_DAC_Audio_Class::XT_DAC_Audio_Class(unsigned char, unsigned char)'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o: in function `loop()':
C:\Users\POXA\Downloads\XT_DAC_Audio-4_2_1\XT_DAC_Audio\PlayWav/PlayWav.ino:27: undefined reference to `XT_DAC_Audio_Class::FillBuffer()'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\Downloads\XT_DAC_Audio-4_2_1\XT_DAC_Audio\PlayWav/PlayWav.ino:29: undefined reference to `XT_DAC_Audio_Class::Play(XT_PlayListItem_Class*)'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o: in function `_GLOBAL__sub_I_Force':
C:\Users\POXA\Downloads\XT_DAC_Audio-4_2_1\XT_DAC_Audio\PlayWav/PlayWav.ino:10: undefined reference to `XT_Wav_Class::XT_Wav_Class(unsigned char const*)'
c:/users/poxa/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\POXA\AppData\Local\Temp\arduino\sketches\779E847158478B338F628AEEE3C2E49C\sketch\PlayWav.ino.cpp.o: in function `__static_initialization_and_destruction_0':
C:\Users\POXA\Downloads\XT_DAC_Audio-4_2_1\XT_DAC_Audio\PlayWav/PlayWav.ino:13: undefined reference to `XT_DAC_Audio_Class::XT_DAC_Audio_Class(unsigned char, unsigned char)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
It looks like something is not well referenced, but i don't why, because i took everything from the archive and added it to library
Can someone has a clue or an idea of what i can/should do to success
Thanks in advance
Error Compiling
-
- Posts: 831
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Error Compiling
I installed with git from https://github.com/WeekendWarrior1/XTro ... dio_Mirror
Compiled without problems. Perhaps you did not put it in the correct location where it could find the functions. (<sketchbook>/libraries/XT_DAC_Audio - it is flat in there)
The include in that playwav.ino really should be #include <XT_DAC_Audio.h> to indicate it is a system provided header rather than local, but that should not cause an error.
Compiled without problems. Perhaps you did not put it in the correct location where it could find the functions. (<sketchbook>/libraries/XT_DAC_Audio - it is flat in there)
The include in that playwav.ino really should be #include <XT_DAC_Audio.h> to indicate it is a system provided header rather than local, but that should not cause an error.
Who is online
Users browsing this forum: No registered users and 75 guests