So, I found a version of nmake.exe hiding on my system, so I added the folder to the system path.
After that, I could get the 'cmake -G "NMake Makefiles" ..' command to run (although, only in powershell, and not VS Code's console).
When that's complete, I could also run 'nmake', however now I'm running into errors with that...
The log insinuates that something might be off with my example code, but as far as I can tell, there isn't anything wrong with it:
Line 23 being the final bracket.
Arghhhh, this is all so frustrating.
Is there a better way to get builds happening on a Windows machine? I've also been tinkering with setting this all up in WSL (Ubuntu), but there are just as many roadblocks, especially since I need to be able to use Picoprobe.
Code:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\nmake.exe
When that's complete, I could also run 'nmake', however now I'm running into errors with that...
Code:
PS C:\Users\<username>\Documents\Git\pico\pico-test-project\build> nmakeMicrosoft (R) Program Maintenance Utility Version 14.35.32215.0Copyright (C) Microsoft Corporation. All rights reserved.[ 1%] Building ASM object pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj[ 3%] Linking ASM executable bs2_default.elf[ 3%] Built target bs2_default[ 5%] Generating bs2_default.bin[ 7%] Generating bs2_default_padded_checksummed.S[ 7%] Built target bs2_default_padded_checksummed_asm[ 9%] Building C object CMakeFiles/test.dir/main.c.objC:\Users\<username>\Documents\Git\pico\pico-test-project\main.c: In function 'main':C:\Users\<username>\Documents\Git\pico\pico-test-project\main.c:23:1: error: expected declaration or statement at end of input 23 | } | ^NMAKE : fatal error U1077: 'C:\PROGRA~1\DAISYT~1\bin\AR19DD~1.EXE -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_UTIL=1 -DPICO_BOARD=\"pico\" -DPICO_BUILD=1 -DPICO_CMAKE_BUILD_TYPE=\"Release\" -DPICO_COPY_TO_RAM=0 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_TARGET_NAME=\"test\" -DPICO_USE_BLOCKED_RAM=0 -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_S~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA268C~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_B~1\include -IC:\Users\<username>\Documents\Git\pico\pico-test-project\build\generated\pico_base -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\boards\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_P~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\rp2040\HARDWA~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HARDWA~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\rp2040\HARDWA~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HARDWA~3\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA2A15~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA5FF7~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_S~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_T~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA775E~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_U~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HAE181~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA2362~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HARDWA~4\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HAA248~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA3ACB~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA33F0~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA78F3~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\HA23F6~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_R~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_P~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_B~3\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_D~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_D~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_F~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_M~1\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_B~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\common\PICO_B~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_S~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_S~4\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_I~2\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\PICO_M~3\include -IC:\PROGRA~1\RASPBE~1\PICOSD~1.1\pico-sdk\src\RP2_CO~1\BOOT_S~1\include -mcpu=cortex-m0plus -mthumb -O3 -DNDEBUG -std=gnu11 -ffunction-sections -fdata-sections -MD -MT CMakeFiles\test.dir\main.c.obj -MF CMakeFiles\test.dir\main.c.obj.d -o CMakeFiles\test.dir\main.c.obj -c C:\Users\<username>\Documents\Git\pico\pico-test-project\main.c' : return code '0x1'Stop.NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\nmake.exe" -s -f CMakeFiles\test.dir\build.make /nologo -SL CMakeFiles\test.dir\build' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -S all' : return code '0x2'Stop.
Code:
#include <stdio.h>#include "pico/stdlib.h"#include "hardware/gpio.h"#include "pico/binary_info.h"const uint LED_PIN = 25;int main(){ bi_decl(bi_program_description("This is a test binary.")); bi_decl(bi_1pin_with_name(LED_PIN, "On-board LED")); stdio_init_all(); gpio_init(LED_PIN); gpio_set_dir(LED_PIN, GPIO_OUT); while (1) { gpio_put(LED_PIN, 0); sleep_ms(250); gpio_put(LED_PIN, 1); puts("Hello World\n"); sleep_ms(1000);}
Arghhhh, this is all so frustrating.
Is there a better way to get builds happening on a Windows machine? I've also been tinkering with setting this all up in WSL (Ubuntu), but there are just as many roadblocks, especially since I need to be able to use Picoprobe.
Statistics: Posted by TomboBlombo — Tue Jan 23, 2024 6:48 am