karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
523 stars 155 forks source link

Multiple definitions of the 'base64_encode' function #33

Closed joaofl closed 6 years ago

joaofl commented 6 years ago

Got an error while compiling with the latest sdk. The complete error description is: Am I missing something?

/home/joao/Programas/esp/Ka-Radio32/build/wpa_supplicant/libwpa_supplicant.a(base64.o): In function `base64_encode':
/home/joao/Programas/esp/esp-idf/components/wpa_supplicant/src/wpa2/utils/base64.c:31: multiple definition of `base64_encode'
/home/joao/Programas/esp/Ka-Radio32/build/main/libmain.a(websocket.o):/home/joao/Programas/esp/Ka-Radio32/main/websocket.c:52: first defined here
collect2: error: ld returned 1 exit status
/home/joao/Programas/esp/esp-idf/make/project.mk:405: recipe for target '/home/joao/Programas/esp/Ka-Radio32/build/KaRadio32.elf' failed
joaofl commented 6 years ago

It seems that the new sdk from expressif includes a function with that name. A good idea would be to use their implementation, if possible.

To quickly solve the issue I simply renamed the function. Created a pull request with that.

https://github.com/karawin/Ka-Radio32/pull/34