edgeimpulse / firmware-pi-rp2040

Ingestion & inferencing firmware for the Raspberry Pi Pico (RP2040)
35 stars 13 forks source link

Fails at cmake on Windows #7

Open Abby-Sun opened 1 year ago

Abby-Sun commented 1 year ago

I got an issue while making .uf2 on Windows CMD. And it fails at "cmake -G "NMake Makefiles" .."

C:\Pico\firmware-pi-rp2040-main\build>cmake -G "NMake Makefiles" .. PICO_SDK_PATH is C:/Pico/pico-sdk PICO platform is rp2040. CMake Error at ThirdParty/FreeRTOS-Kernel/portable/ThirdParty/GCC/RP2040/CMakeLists.txt:17 (project): Running

'nmake' '-?'

failed with:

The system cannot find the file specified

-- Configuring incomplete, errors occurred! See also "C:/Pico/firmware-pi-rp2040-main/build/CMakeFiles/CMakeOutput.log".

micropicostack commented 4 months ago

This is an issue with selecting the makefile generator, I think by default on Windows it will try to use NMake (Visual Studio??). You have to manually state the generator that you use.

If you use VS Code and CMake extension then you could add "cmake.generator": "MinGW Makefiles", to settings.json file