raspberrypi / pico-setup-windows

Old Pico-Setup-Windows installer, this repository is no longer in use.
Apache License 2.0
259 stars 38 forks source link

Problem finding path with new project #29

Closed Sarahelma closed 1 year ago

Sarahelma commented 1 year ago

hi I've followed your tutorials and it's working fine when I'm running the examples, when I've tried to create a new project using it this is what I'm getting

PS C:\> copy ${env:PICO_SDK_PATH}\external\pico_sdk_import.cmake .
copy : Cannot find path 'C:\external\pico_sdk_import.cmake' because it does not exist.
At line:1 char:1
+ copy ${env:PICO_SDK_PATH}\external\pico_sdk_import.cmake .
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\external\pico_sdk_import.cmake:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

What am I doing wrong? Is it to do with setting the pico sdk path in environment variables?

ndabas commented 1 year ago

Yes, looks like the PICO_SDK_PATH environment variable isn't set -- did you run this command from a Pico - Developer PowerShell prompt?

Sarahelma commented 1 year ago

Yeah it was because I opened PowerShell normally, it works now! Thanks for your help