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
[X ] Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Configuration
Operating system: Windows 10 x64
PlatformIO Version (platformio --version): PlatformIO Core, version 5.2.0a6
Description of problem
When using an Arduino library which makes use of a precompiled library, PlatformIO cannot compile them correctly without additional build_flags configuration, which is not needed for the Arduino IDE.
Linking .pio\build\mkrwifi1010\firmware.elf
.pio\build\mkrwifi1010\lib29e\libArduino_MCHPTouch.a(touch.c.o): In function `touch_sensors_init':
touch.c:(.text.touch_sensors_init+0x12): undefined reference to `touch_selfcap_sensors_init_with_rs_table'
touch.c:(.text.touch_sensors_init+0x38): undefined reference to `touch_selfcap_sensor_config'
touch.c:(.text.touch_sensors_init+0x56): undefined reference to `touch_selfcap_sensor_config'
touch.c:(.text.touch_sensors_init+0x74): undefined reference to `touch_selfcap_sensor_config'
touch.c:(.text.touch_sensors_init+0x92): undefined reference to `touch_selfcap_sensor_config'
touch.c:(.text.touch_sensors_init+0xb0): undefined reference to `touch_selfcap_sensor_config'
touch.c:(.text.touch_sensors_init+0xbc): undefined reference to `touch_selfcap_sensors_calibrate'
.pio\build\mkrwifi1010\lib29e\libArduino_MCHPTouch.a(touch.c.o): In function `touch_sensors_measure':
touch.c:(.text.touch_sensors_measure+0x16): undefined reference to `touch_selfcap_sensors_measure'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\mkrwifi1010\firmware.elf] Error 1
=========== [FAILED] Took 4.18 seconds ===========
Implementing this would also make many library.json and extra scripts unnecessary, as e.g. used in https://github.com/BoschSensortec/BSEC-Arduino-library. Note that the Arduino IDE seems to use src/<CPU architecture> as the linker path directory.
What kind of issue is this?
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Configuration
Operating system: Windows 10 x64
PlatformIO Version (
platformio --version
):PlatformIO Core, version 5.2.0a6
Description of problem
When using an Arduino library which makes use of a precompiled library, PlatformIO cannot compile them correctly without additional
build_flags
configuration, which is not needed for the Arduino IDE.Refer e.g. https://community.platformio.org/t/how-to-debug-collect2-link-error-in-arduino-mkriotcarrier-example-sketch/22310 in which the library https://github.com/arduino-libraries/Arduino_MCHPTouch is used. This library contains in the
library.properties
and the library file.
However, just using this library with
lib_deps = arduino-libraries/Arduino_MCHPTouch @ ^1.1.0
fails as PlatformIO does not process these flags.
Steps to Reproduce
mkrwifi1010
Arduino_MCHPTouch
vialib_deps
src\main.cpp
Actual Results
Expected Results
Successful compilation.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
After adding
compilation is successful.
The text was updated successfully, but these errors were encountered: