TMRh20/TMRpcm

RF24Audio and TMRpcm

Copareder opened this issue · 1 comments

In this project, I propose to combine the two RF24 Audio and TMRpcp libraries. The error occurs at the compilation stage of the project when the compiler cannot resolve the conflict between the definitions of this symbol.

C:\Users\���� ������\AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\TMRpcm-master\pcmRF.cpp . o (symbol from the plugin): In the `txFile' function:
(.text+0x0): multiple definition of `__vector_11'
C:\Users\���� ������\AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\TMRpcm-master\TMRpcm.cpp . o (symbol from the plugin):(.text+0x0): first defined here
C:\Users\���� ������\AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\RF24Audio-master\RF24Audio.cpp . o (symbol from the plugin): In the `radi' function:
(.text+0x0): multiple definition of `radi'
C:\Users\���� ������\ AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\TMRpcm-master\pcmRF.cpp . o (symbol from the plugin):(.text+0x0): first defined here
C:\Users\���� ������\AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\RF24Audio-master\RF24Audio.cpp . o (symbol from the plugin): In the `radi' function:
(.text+0x0): multiple definition of `__vector_11'
C:\Users\���� ������\AppData\Local\Temp\arduino\sketches\9E123A3B8BBD94EE9694C7D5B9B1003C\libraries\TMRpcm-master\TMRpcm.cpp . o (symbol from the plugin):(.text+0x0): first defined here
collect2.exe : error: ld returned 1 exit status

I have already tried to update the libraries to the latest versions and checked that the libraries are connected correctly in my code. However, the problem still remains.

I would like to know if there are any recommendations or changes in the source code of the RF24Audio and TMRpcm library, what can be done to avoid this error? Maybe there are some specific settings or directives that I should use?

I would be grateful for any help or recommendations to solve this problem.

Hey @Copareder the two libraries are somewhat incompatible, but the TMRpcm library does allow streaming off SD card to a node running RF24Audio. See https://github.com/TMRh20/TMRpcm/wiki/Advanced-Features#audio-streaming-over-nrf24l01-radio-link

I don't think I will ever combine the two libraries though, it would be a ridiculous use of time IMHO for very little gain.