When I try to add a pre-compiled library like this
build_flags =
${common.build_flags}
-lrf24-bcm
as suggested by Redirecting..., this does not work. When I do pio remote run -v, I see that the compiler is called without that flag, even though all other build flags are correctly applied. Some playing around unvealed that basically everything that is written behind a -l flag is getting deleted from the build args, everything else is getting correctly applied.
Just as you did. It is correct that the flag does not show up during the compilation of the .o object files. It’s a linker flag. It will be included in the very last command.
Check the verbose compilation output of a blinky-example for the Uno with the platformio.ini
Thank you! I was completely on the wrong track, the cause that it did not work was that I referenced the library wrongly in my include (RF24.h instead of RF24/RF24.h). Now it works as expected