Skip to content
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

Error building hello_usb on Windows 10 #153

Closed
HrOlsen opened this issue Aug 18, 2021 · 9 comments
Closed

Error building hello_usb on Windows 10 #153

HrOlsen opened this issue Aug 18, 2021 · 9 comments
Labels
duplicate This issue or pull request already exists

Comments

@HrOlsen
Copy link

HrOlsen commented Aug 18, 2021

I've followed this guide step by step:
https://www.element14.com/community/community/raspberry-pi/blog/2021/01/24/working-with-the-raspberry-pi-pico-with-windows

And everything works in "Developer Command Prompt for VS 2019" until the linking where I also have the "╗┐" in front of the directory path with the object files in.
image

@HrOlsen
Copy link
Author

HrOlsen commented Aug 18, 2021

I can see that it has been reported previously but never solved.
#152
#141

@HrOlsen HrOlsen closed this as completed Aug 18, 2021
@aallan
Copy link

aallan commented Aug 18, 2021

I've not read through that guide.

Did you look at Chapter 9 (section 9.2) of https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf, which is the official guide to how to do this, and worked as of 2 days ago when I last tested it. While Raspberry Pi does not directly support it there is also third-party installer script for Windows 10 that is roughly equivalent of the pico-setup.sh script . More details at https://github.com/ndabas/pico-setup-windows.

@aallan aallan added the duplicate This issue or pull request already exists label Aug 18, 2021
@lurch
Copy link
Contributor

lurch commented Aug 18, 2021

@aallan It seems that some users (even when following our PDF instructions) are getting a weird UTF-8 byte-sequence in one of their build-files, and this is causing some part of the build-system to choke. But as of yet neither myself nor @kilograham have been able to figure out why, and we can't reproduce the problem ourselves.

@aallan
Copy link

aallan commented Aug 18, 2021

…some users (even when following our PDF instructions) are getting a weird UTF-8 byte-sequence in one of their build-files, and this is causing some part of the build-system to choke

Yup. I've had a go at reproducing it. I also can't figure out what's going on, "Works on my machine™" . 🤷‍♂️

@aallan
Copy link

aallan commented Aug 18, 2021

My guess is (was?) that there is a tutorial somewhere on the web that's the root cause of this, it's telling them to do something that mostly but not always works.

@lurch
Copy link
Contributor

lurch commented Aug 18, 2021

My guess was some kind of character-encoding / localisation / filesystem issue, but who knows 🤷‍♂️

@kilograham
Copy link
Contributor

i have not (nor will be at any time soon) looked in any detail. the UTF-8 byte sequence is a "byte order marking" that Windows/some windows editors like to insert at the top of UTF-8 files when writing them. these seem to get into the file containing filenames to link, and hence presumably the first filename.

Either this only happens sometimes or some versions of ARM gcc can cope with it.

Also, allegedly the problem goes away if you use ninja (or mingw), so nmake is part of the mix

@HrOlsen
Copy link
Author

HrOlsen commented Aug 19, 2021

I'm up and running now :)
I uninstalled everything and followed this guide:
https://shawnhymel.com/2096/how-to-set-up-raspberry-pi-pico-c-c-toolchain-on-windows-with-vs-code
There is a step for "enable long paths" - i don't know if this is the tweak that fixes the issue.

@lurch
Copy link
Contributor

lurch commented Aug 19, 2021

@HrOlsen I think it's the fact that it uses mingw that "fixes" it for you. (which Graham also mentions in his comment above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants