Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more.
0

Problems (and fixes!) for build tools
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problems (and fixes!) for build tools

by axiomatic on Sun Mar 15, 2020 2:04 pm

I ran into a couple errors in the course of getting my laptop configured to build CircuitPython from source. I'm leaving the steps I followed here in case anyone else gets stuck.

1. When I ran make, there was a missing library (adafruit_usb_descriptor). I looked in the tools directory and found an empty directory called usb_descriptor. I renamed the directory to adafruit_usb_descriptor and downloaded the library from this link https://github.com/adafruit/usb_descriptor and put the files in the renamed directory. That fixed the first problem.

2. The second problem was another missing library in /tools/uf2/util/uf2conv The fix was to download the missing files from this link https://github.com/microsoft/uf2, create the folder structure (on my machine I had make the folder structure /uf2/util/uf2conv inside the tools directory), and add the downloaded library to the new folders.

Hopefully this helps someone else who runs into these problems.

axiomatic
 
Posts: 8
Joined: Tue Aug 15, 2017 11:09 pm

Re: Problems (and fixes!) for build tools

by jerryn on Sun Mar 15, 2020 4:34 pm

Just to be sure - did you run all of these commands before building?
Code: Select all | TOGGLE FULL SIZE
git clone https://github.com/adafruit/circuitpython.git
cd circuitpython
git submodule sync
git submodule update --init
git submodule update --recursive


from https://learn.adafruit.com/building-circuitpython/build-circuitpython

jerryn
 
Posts: 1181
Joined: Sat Sep 14, 2013 9:05 am

Re: Problems (and fixes!) for build tools

by axiomatic on Sun Mar 15, 2020 4:58 pm

I'm embarrassed to say I can't reproduce the error. I tried the build setup process from the beginning and everything worked perfectly. Oh well, disregard.

axiomatic
 
Posts: 8
Joined: Tue Aug 15, 2017 11:09 pm

Please be positive and constructive with your questions and comments.