-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for picotool (within pico-setup script) seems to missing some steps, resulting in "Findpicotool" failing during project builds #42
Comments
ping @will-v-pi |
Yeah, the copy is not correct anymore - Line 116 in b6029ad
should be replaced with
This was not the intention - could you clarify where we've implied that and we'll fix it? Generally you should always have a common picotool for all your projects, I can't think of any case where you'd want separate ones |
In the README.md file in the picotool repository, under the section "Usage by the Raspberry Pi Pico SDK", the section does state that common usage is preferred, but it seems that additional steps are necessary and only suggested. Perhaps this is the right approach, but should be more strongly worded (such as by specifying the "make install" step first). Link here: |
Note that the wording there has already been tweaked slightly on the |
I see. |
Issue:
Within the pico-setup script, there is a section (around line 100) where it clones and builds the picotool repository, then copies the executable into /usr/local/bin.
Apparent Cause:
The above appears to be insufficient for the pico-sdk "Findpicotool" step, resulting in local rebuilds of the picotoool executable in EVERY project due to the pico-sdk "Findpicotool" step failing (despite it being in the path).
Fallout:
This can also be seen described in issue pico-sdk#1818, and possibly #41 in this repository.
My solution:
I was able to correct this on my own (Raspberry Pi 5) system by performing the following instructions, as described in the picotool repository's README.md:
1.
Note: Because of this item, I did a "sudo make install" after the initial build. This appears to have done additional operations beyond the simple "sudo cp" of the executable which is done by the pico-setup.sh script.
After these two steps, it's not complaining and forcing a remake each time.
I'm not sure if you are interested in fixing this, however (even though it is reported as an issue repeatedly), because the picotool repository seems to imply that there may be some situations where you may want a separate picotool for each project.
The text was updated successfully, but these errors were encountered: