-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
Library dependencies not respecting platforms #814
Comments
Thanks a lot for the great report! This is a bug and I've just fixed it. Please re-test with the http://docs.platformio.org/en/stable/installation.html#development-version |
I found a problem with "EnableInterrupt" library This library doesn't has
|
This fix a bug in PlatformIO dependencies platformio/platformio-core#814
This fix a bug in PlatformIO dependencies platformio/platformio-core#814
WoW... Thanks for the quick fix... One question: Why dependencies are not automatically downloaded? And a small problem: I think the verification platform is very narrow and some libraries are using the old name: "espressif
{
"name": "MFRC522",
"frameworks": "arduino",
"platforms": ["atmelavr", "ststm32", "teensy", "espressif"]
} Running
I got:
I did a pull request for these libraries, but I think it will happen to other ... |
It should work. If library is already installed, then PIO will not re-check "dependencies". Try to isntall
I'll think on it. Maybe, will add some hook for that. |
I think it's because I'm using the lib directly without installing. Thanks |
Configuration
Operating system: Ubuntu Linux 64
PlatformIO Version: PlatformIO, version 3.1.0
Description of problem
I have a library that has dependencies on other libraries and some are specific per platform.
Previously I was managing the dependencies through a dependencies.h file in my library. The problem is that the user has to be editing the library files for each sketch, that's not cool.
I'm upgrading to platformio, and I am struggling to solve this problem, it seems to be a bug.
LIB: https://github.com/OpenDevice/opendevice-lib-arduino/tree/0.1.4
Steps to Reproduce
Starting an example, I have two platforms set in my Skech: atmelavr / uno, espressif8266.
When I compile for UNO, throws an error that can not find the lib ESP8266WiFi that this being should only be "active" when compiling for the esp8266
Actual Results (ERROR)
Expected Results
Compile "OpenDevice" using libraries with match the platform of active enviroment
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
On lib, i'm using: "build" : { "libLDFMode" : 0 }
On sketch: lib_compat_mode = 2
The text was updated successfully, but these errors were encountered: