Closed phires closed 1 year ago
Looks like the same issue as was reported in #690. I was able to replicate it using your .ini
configuration.
As a workaround, you can add lib_ldf_mode = chain+
to your .ini
file, however, that's not really fixing the root cause - I was under the impression that having a library.json in the repository would force Platform.IO to apply the settings within that file, but apparently not ... I will have to investigate further.
@phires seems like this was an issue in Platformio, as discussed here: https://community.platformio.org/t/library-ldf-mode-ignored-for-lib-deps/32639
It should be fixed now, could you try to clean and rebuild your project?
@jgromes FWIW I was able to successfully build for a STM32WLx that does use SubGhz prior to this change, and am now getting this error:
12 | #include <SubGhz.h>
| ^~~~~~~~~~
compilation terminated.
*** [.pio/build/lora_e5/lib909/RadioLib/modules/SX126x/STM32WLx_Module.cpp.o] Error 1
Edit: After reviewing the discussion you linked to, it seems relevant to note that I was directly adding SubGhz to lib_deps like this, but it's now failing with or without it:
lib_deps =
SubGhz
RadioLib
@derekmpeterson That's odd. @matthijskooijman any idea why this is the case? Checking the build process, SUBGHZSPI_BASE
is defined, but despite that PlatformIO doesn't find the SubGhz library.
I had a look at this, but I'm quite unsure what happens. I also have little experience with pio, so that's not really helpful.
@derekmpeterson, it seems that you are seeing a different issue than the subject of this issue (you are using an STM32WL board, and the issue is about using another STM board). Maybe it would be helpful to create a separate issue for this (since this issue seems already fixed, just @phires needs to confirm it). If you create a new issue, could you include the entire error message? Seems you just pasted the context, not the error message itself.
Seems the original was resovled, as I can no longer reproduce it. I added a separate issue for the new problem.
Describe the bug Compiling for STM32 Bluepill with RM95 using Platform IO (VSCode)results in this error:
To Reproduce platform.ini
main.cpp
Expected behavior Compiling succuessful.
Additional info (please complete):