You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From within VS Code open platformio project "examples/knx-usb" using the menu (CLI not tested)
Click "verbose build", "build" or "pre-debug" to start build
Actual Results
Compiling stops due to missing header files for dependent libraries (e.g. Adafruit TinyUSB library), although all libraries were found and are in place.
User Stories:
As a user of the knx library I want to checkout the complete repository and just open an example in VS Code and use platformio to build the example. The knx library source code that shall be used during building the exmaple is supposed to be the source code checked out.
As the maintainer/author (not me!) of the knx library I do not want to change the directory structure as platformio is only one of the used build systems.
It seems that the issue is somehow related to the fact, that the directory (libdeps) is within a subdirectory of the actual project which itself is also a subdirectory of the path specified by using lib_extra_dir=../../..
Current workaround
Add libdeps_dir = /tmp/libdeps so that third-party libraries are not within lib_extra_dirs path.
The text was updated successfully, but these errors were encountered:
Configuration
Operating system: Windows10
PlatformIO Version (
platformio --version
): 4.1.0Description of problem
platformio build does not find header files of dependent libraries if
Steps to Reproduce
Actual Results
Compiling stops due to missing header files for dependent libraries (e.g. Adafruit TinyUSB library), although all libraries were found and are in place.
Expected Results
Successful compilation.
If problems with PlatformIO Build System:
The content of
platformio.ini
:https://github.com/thelsing/knx/blob/master/examples/knx-usb/platformio.ini
Source file to reproduce issue:
https://github.com/thelsing/knx/blob/master/examples/knx-usb/src/main.cpp
Additional info
User Stories:
As a user of the knx library I want to checkout the complete repository and just open an example in VS Code and use platformio to build the example. The knx library source code that shall be used during building the exmaple is supposed to be the source code checked out.
As the maintainer/author (not me!) of the knx library I do not want to change the directory structure as platformio is only one of the used build systems.
It seems that the issue is somehow related to the fact, that the directory (libdeps) is within a subdirectory of the actual project which itself is also a subdirectory of the path specified by using
lib_extra_dir=../../..
Current workaround
Add
libdeps_dir = /tmp/libdeps
so that third-party libraries are not within lib_extra_dirs path.The text was updated successfully, but these errors were encountered: