daniloc / PicoW_HomeAssistant_Starter

Everything you need to get started with your own Intranet of Things, using the high-quality, low-cost Pico W as the backbone.
MIT License
198 stars 20 forks source link

Build system question #19

Open JacobChrist opened 11 months ago

JacobChrist commented 11 months ago

@daniloc How do you build this project? I've been working in Linux but I'm trying to build on my Windows laptop and have all kinds of issues. If I use the default raspberrypi package I get a missing package or platfom json file (I can't see the exact one now but I'll up date this later. If I try to use the same commit of the pico package that I"m using on my Linux machine I take like 5-15 minutes to clone a bunch of stuff then ultimately fails. If I had to guess your using a mac (especially becuase of the mac-post-upload.py script in the package).

JacobChrist commented 11 months ago
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#0c33219f53faa035e188925ea1324f472e8b93d2

This is what I get with the specific version:

Cloning into 'C:/Users/jacob/.platformio/.cache/tmp/pkg-installing-vduxevai/pico-sdk/lib/tinyusb/tools/uf2/hidapi'...

Submodule path 'pico-sdk/lib/tinyusb/tools/uf2/hidapi': checked out 'a6a622ffb680c55da0de787ff93b80280498330f'
fatal: Failed to recurse into submodule path 'pico-sdk/lib/tinyusb'

fatal: Failed to recurse into submodule path 'pico-sdk'

Submodule path 'tools/libbearssl/bearssl': checked out 'f294aa022f82833941ffdf3b0f306c2072e3a26c'
Submodule path 'tools/pyserial': checked out '0e7634747568547b8a7f9fd0c48ed74f16af4b23'
VCSBaseException: VCS: Could not process command ['git', 'clone', '--recursive', 'https://github.com/earlephilhower/arduino-pico.git', 'C:\\Users\\jacob\\.platformio\\.cache\\tmp\\pkg-installing-vduxevai']
daniloc commented 11 months ago

This looks to be an issue with arduino-pico and tinyusb, from a bit of searching the fatal errors. I believe this should get you back on your way:

https://github.com/earlephilhower/arduino-pico/issues/1278#issuecomment-1479802920

Try that out and let me know how it goes.

JacobChrist commented 11 months ago

Search engine fu is strong with this one. That seems to have done it.