thomastech / Sparky

The Little Stick Welder with Big Features.
GNU General Public License v3.0
42 stars 6 forks source link

PlatformIO has issues with patched libraries #8

Open rocketbob opened 3 years ago

rocketbob commented 3 years ago

Hello!

Trying to build this project with the latest versions of PlatformIO and it seems to have heartburn with the patched library.properties files not being parsed correctly. The only thing I can find about this subject is that PlatformIO recommends this file to be in json format. Any ideas?

CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32_pro_16MB.html PLATFORM: Espressif 32 (3.3.2) > WEMOS LOLIN D32 PRO 16MB HARDWARE: ESP32 240MHz, 3.91MB RAM, 6.25MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

thomastech commented 3 years ago

@rocketbob: It's been months since my last build. So I just tried a fresh compile and the only issue (which is expected) is one warning regarding XT_Wave_Class. You can ignore the warning.

During a build the terminal reports this:


Processing lolin_d32_pro (platform: espressif32@>=1.11.1; framework: arduino; board: lolin_d32_pro_16MB)
-----------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32_pro_16MB.html
PLATFORM: Espressif 32 (2.0.0) > WEMOS LOLIN D32 PRO 16MB
HARDWARE: ESP32 240MHz, 3.91MB RAM, 6.25MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10004.200129 (1.0.4)
 - tool-esptoolpy 1.20600.0 (2.6.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries

```{snip-snip}

I haven't used the latest platformio release. Probably best to check the platformio community to see if they have discussed how to migrate existing builds to their new versions.

- Thomas
thomastech commented 3 years ago

I looked at the Platformio Github and found a closed issue that appears to be similar to yours. See: https://github.com/platformio/platformio-core/issues/3817

ivankravets reported to the OP: "You have invalid library dependency in your platformio.ini. Please fix lib_deps and use SemVer compatible declaration."

Please report back the solution if you solve this.

thomastech commented 2 years ago

Issue has been dormant for >30 days. Closing it for now; Can be reopened when additional information is available.

rocketbob commented 2 years ago

Hello Thomas,

Revisited the welder project today and was able to get it to compile by deleting the following line from INA219/library.properties:

version=id0ead2753.x (patched by thomastech, 09-2019)

Also, there were some problems in your platform.ini file and changed the library dependencies to the following: lib_deps = adafruit/Adafruit GFX Library@1.7.5 adafruit/Adafruit ILI9341@1.5.3 paulstoffregen/XPT2046_Touchscreen

The Adafruit GFX library didnt have a 1.7.3 version.

Thanks, Bob

thomastech commented 2 years ago

Hi Bob -

Thank you for reporting the solution.

thomastech commented 2 years ago

Reopen Issue, include solution in next release.