Replies: 2 comments 2 replies
-
@ruifig can you undo the hacked extra |
Beta Was this translation helpful? Give feedback.
1 reply
-
Your suggested fix gets past that error, but then another one appears. :) WiFi and Updater libraries also have a circular dependency, because of StackThunk.h/cpp |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using PlatformIO for my project, and since it's a bit of a complex project, I'm now at the point the
lib_ldf_mode=chain+
I'm using takes ages to process.I'm now trying to set
lib_ldf_mode
tooff
and specifying all the libraries manually.I'm almost there (I think), but seems like I came a cross a circular dependency.
My Dependency graph (according to PlatformIO) is this:
LwipEthernet.cpp
needs a header from theWiFi
library. This:If let LFD on, it seems PlatformIO solves it by just adding the right
-I
parameters, so the circular dependency is not a problem.But when specifying the libraries manually that doesn't work because the
-I
parameters are added according to the library order.For example, given these libs:
C depends on B, and B depends on A.
When compiling A, A won't see the headers for B or C.
While writing this post I actually found a solution. I can just add a
-I
for WiFi tobuild_flags
This:
-I "${platformio.packages_dir}/framework-arduinopico/libraries/WiFi/src"
Still, starting this discussion because maybe it's something that can be fixed at the Arduino-Pico level for the future?
Beta Was this translation helpful? Give feedback.
All reactions