-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrf_to_nrf dependency is causing compiler errors in platformio #228
Comments
RF24Mesh doesn't actually require nrf_to_nrf lib installed (as you can check in RF24Mesh's v2.0.0 library.json). However, RF24Network's v2.0 library.json does name a dependency on nrf_to_nrf library for the Lines 44 to 46 in 38ee022
For the nrf_to_nrf v1.2.2 library.json, there was a named dependency on a certain branch of RF24Mesh, but that dependency specification has been removed as of v1.2.6 library.json (& the RF24Mesh branch has been deleted).
|
Thanks for answering my questions. I don't see any problems other than the platform-specific dependency getting installed (which is not intended). I feel like this is a bug in PIO core itself. I see they had a similar problem in the past, but that was fixed in v6.1.0. According to the docs about library dependencies, we are doing everything right as far as I can tell. |
Does it help to add RF24 & RF24Network to your project's lib_deps =
rlogiacco/CircularBuffer@^1.3.3
lennarthennigs/Button2@^2.2.4
nrf24/RF24@^1.4.8
nrf24/RF24Network@^2.0.0
nrf24/RF24Mesh@^2.0.0 Maybe the PIO LDF is losing the platform info as it seeks dependencies of dependencies. UpdateI tried the above config in a new PIO project (for
@shyney7 I also tried your current config in a new PIO project and was not able to reproduce this problem. I suggest you delete your .pio folder and try building again (because that's what I did when changing the config). |
@2bndy5 |
Still its good that reported it. At least I have better advice now if someone else comes across this problem. |
This workaround does not work for me :(
Based on this comment, I tried
and the code compiles. |
It is certainly an acceptable workaround for projects that don't use nRF52 boards, but we made sure the dependencies are specifically and conditionally stated. @NorbertSandor I have some questions:
|
@2bndy5 Deleting the |
The nrf_to_nrf library dependency is causing compiler errors like
nrf_to_nrf/src/nrf_to_nrf.cpp:102:5: error: 'NRF_RADIO' was not declared in this scope
to occur. This library is installed automatically when installing the RF24Mesh library in platformio.
I've tried several versions of the nrf_to_nrf library but the only solution was to delete the library completely.
console output
compiler errors:
ini:
Platformio Core 6.1.11·Home 3.4.4
All libraries are installed project wise
The text was updated successfully, but these errors were encountered: