thieu-b55 / ESP32-audiokit-webradio-webinterface

ESP32 webradio with webinterface
MIT License
9 stars 4 forks source link

Link issues with ESP32 #3

Closed AndreasMainz closed 1 year ago

AndreasMainz commented 1 year ago

I included all libs as rquired, using the newest ESP Core: V2.0.5 and get a lot of linker errors:

c:/users/admin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\Audio.cpp.o:(.literal._ZN5Audio17initializeDecoderEv+0x14): undefined reference to `AACDecoder_IsInit()'

c:/users/admin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\Audio.cpp.o:(.literal._ZN5Audio17initializeDecoderEv+0x18): undefined reference to `AACDecoder_AllocateBuffers()'

c:/users/admin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\Audio.cpp.o:(.literal._ZN5Audio15showCodecParamsEv+0x2c): undefined reference to `AACGetFormat()'

c:/users/admin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\Audio.cpp.o:(.literal._ZN5Audio15showCodecParamsEv+0x30): undefined reference to `AACGetID()'

c:/users/admin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\Audio.cpp.o:(.literal._ZN5Audio15showCodecParamsEv+0x34): undefined reference to `AACGetProfile()'

and many more.. What should i update?

AndreasMainz commented 1 year ago

I copied to AAC decoderfiles in the directory of the project..then linking was fine..

thieu-b55 commented 1 year ago

hi Andreas,

I understand that you have solved the problem. I´m very glad for that, I should not have known how you could solve the problem. I hope everything works fine now and that you can enjoy the music. sorry for my terrible english, greetings and all the best for 2023, thieu

Op wo 21 dec. 2022 om 11:31 schreef Andreas Mainz @.***

:

Closed #3 https://github.com/thieu-b55/ESP32-audiokit-webradio-webinterface/issues/3 as completed.

— Reply to this email directly, view it on GitHub https://github.com/thieu-b55/ESP32-audiokit-webradio-webinterface/issues/3#event-8085998603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXVODXC2ANCXQ3IMCHOO22DWOLMANANCNFSM6AAAAAATFNNIWU . You are receiving this because you are subscribed to this thread.Message ID: <thieu-b55/ESP32-audiokit-webradio-webinterface/issue/3/issue_event/8085998603 @github.com>

AndreasMainz commented 1 year ago

Hello Thieu,Thank You ready much for your Reply, but I found out that my Audio Kit does not use 8333DAC but the old AC101. Do you know also a solution for this DAC?This Would be very helpful.Many thanks for your Reply and happy Christmas and Greetings for from GermanyAndreas KohlAm 22.12.2022 um 20:54 schrieb thieu-b55 @.***>: hi Andreas,

I understand that you have solved the problem. I´m very glad for that, I should not have known how you could solve the problem. I hope everything works fine now and that you can enjoy the music. sorry for my terrible english, greetings and all the best for 2023, thieu

Op wo 21 dec. 2022 om 11:31 schreef Andreas Mainz @.***

:

Closed #3 https://github.com/thieu-b55/ESP32-audiokit-webradio-webinterface/issues/3 as completed.

— Reply to this email directly, view it on GitHub https://github.com/thieu-b55/ESP32-audiokit-webradio-webinterface/issues/3#event-8085998603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXVODXC2ANCXQ3IMCHOO22DWOLMANANCNFSM6AAAAAATFNNIWU . You are receiving this because you are subscribed to this thread.Message ID: <thieu-b55/ESP32-audiokit-webradio-webinterface/issue/3/issue_event/8085998603 @github.com>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

thieu-b55 commented 1 year ago

Hi Andreas, in the github ESP-audioI2S library maybe you find the solution https://github.com/schreibfaul1/ESP32-audioI2S/blob/master/examples/ESP32_A1S/ESP32_A1S.ino

But maybe the safest solution if you start a new build is go for a LyraT board it isn't expensive and you know what you buy, which isn't always the case if you buy in China

greetings, thieu-b55 Belgium

AndreasMainz commented 1 year ago

Hello thiem,Many 🙏, I got it to work..but in this sketch no web gui is provided. Do you have a recommendation for a nice gui with easy integration?BR from Germany Viele Grüße Andreas KohlAm 23.12.2022 um 08:29 schrieb thieu-b55 @.***>: Hi Andreas, in the github ESP-audioI2S library maybe you find the solution https://github.com/schreibfaul1/ESP32-audioI2S/blob/master/examples/ESP32_A1S/ESP32_A1S.ino greetings, thieu-b55 Belgium

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

thieu-b55 commented 1 year ago

Andreas change the beginning of the ESP32_webradio_audiokit.ino see original (first) and chenged below. This should work

ORIGINAL from EP32_webradio_audiokit.ino

include "Arduino.h"

include "WiFi.h"

include "Audio.h"

include

include

include "FS.h"

include "SD.h"

include

include

include

include "Wire.h"

include "ES8388.h"

static ES8388 dac;
int volume = 80;

Audio audio; Preferences pref; AsyncWebServer server(80);

define SD_CS 13

define SPI_MOSI 15

define SPI_MISO 2

define SPI_SCK 14

/*

// I2C GPIOs

define IIC_CLK 32

define IIC_DATA 33

define PA_EN 21

define MAX_AANTAL_KANALEN 75


CHANGE TO THIS


include "Arduino.h"

include "WiFi.h"

include "Audio.h"

include

include

include "FS.h"

include "SD.h"

include

include

include

include "Wire.h"

include "AC101.h" //https://github.com/schreibfaul1/AC101

static AC101 dac;
int volume = 80;

Audio audio; Preferences pref; AsyncWebServer server(80);

define SD_CS 13

define SPI_MOSI 15

define SPI_MISO 2

define SPI_SCK 14

/*

// I2C GPIOs

define IIC_CLK 32

define IIC_DATA 33

define PA_EN 21

define MAX_AANTAL_KANALEN 75

thieu-b55 commented 1 year ago

I have posted a possible solution on github

Op vr 23 dec. 2022 om 13:22 schreef Andreas Mainz @.***

:

Hello thiem,Many 🙏, I got it to work..but in this sketch no web gui is provided. Do you have a recommendation for a nice gui with easy integration?BR from Germany Viele Grüße Andreas KohlAm 23.12.2022 um 08:29 schrieb thieu-b55 @.***>: Hi Andreas, in the github ESP-audioI2S library maybe you find the solution

https://github.com/schreibfaul1/ESP32-audioI2S/blob/master/examples/ESP32_A1S/ESP32_A1S.ino greetings, thieu-b55 Belgium

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/thieu-b55/ESP32-audiokit-webradio-webinterface/issues/3#issuecomment-1363910129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXVODXFKOXZAFYRGXBFKMWTWOWKQZANCNFSM6AAAAAATFNNIWU . You are receiving this because you commented.Message ID: @.*** .com>