Can’t compile Pi Pico C++ examples because of No such file or directory error

  c++, raspberry-pi-pico, windows

I have been following the official "Getting started with Raspberry Pi Pico" guide, have everything needed installed and setup correctly but when I try and run the nmake command it gives me the below quoted output

C:VSARMsdkpicopico-examplesbuild>nmake

Microsoft (R) Program Maintenance Utility Version 14.29.30139.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[  0%] Built target bs2_default
[  0%] Performing build step for 'ELF2UF2Build'

Microsoft (R) Program Maintenance Utility Version 14.29.30139.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[100%] Built target elf2uf2
[  0%] No install step for 'ELF2UF2Build'
[  0%] Completed 'ELF2UF2Build'
[  0%] Built target ELF2UF2Build
[  0%] Built target bs2_default_padded_checksummed_asm
[  0%] Linking CXX executable blink.elf
arm-none-eabi-g++.exe: error: CMakeFiles/blink.dir/blink.c.obj: No such file or directory
NMAKE : fatal error U1077: '"D:Program Files (x86)GNU Arm Embedded Toolchain 2021.10binarm-none-eabi-g++.exe"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"D:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.29.30133binHostX86x86nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.29.30133binHostX86x86nmake.exe"' : return code '0x2'
Stop.

I have tried reinstalling everything, and making sure that the blink.c.obj is in the above mentioned folder.

Source: Windows Questions

LEAVE A COMMENT