CMake Error at pico_sdk_import.cmake:62

For general Flowcode discussion that does not belong in the other sections.
Post Reply
HansJuergenHalder
Posts: 19
http://meble-kuchenne.info.pl
Joined: Sat Dec 12, 2020 12:32 am

CMake Error at pico_sdk_import.cmake:62

Post by HansJuergenHalder »

Hello,

when I try to flash the Blink program onto an RP2040, I get the following error message:

C:\sonstiges\Flowcode\Flowcode10\Flowcode1Pico>REM DIR: FCD\PICO\batch\pico_build.bat
Building Flowcode1Pico ...
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.14.14
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
. . .

CMake Error at pico_sdk_import.cmake:62 (message):
Directory 'C:/Users/Vati/.pico-sdk/RPI' does not appear to contain the
Raspberry Pi Pico SDK
Call Stack (most recent call first):
CMakeLists.txt:7 (include)
-- Configuring incomplete, errors occurred!

Microsoft (R) Program Maintenance Utility, Version 14.44.35216.0
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

NMAKE : fatal error U1064: MAKEFILE nicht gefunden und kein Ziel angegeben
Stop.

Build Failed

The following is entered in the options under storage locations:

PICO: C:\Users\Vati\.pico-sdk

mnfisher
Valued Contributor
Posts: 1659
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 764 times

Re: CMake Error at pico_sdk_import.cmake:62

Post by mnfisher »

Try without the period ('.') - in the folder name.

This might be giving Windows / Make an issue?

Martin

HansJuergenHalder
Posts: 19
Joined: Sat Dec 12, 2020 12:32 am

Re: CMake Error at pico_sdk_import.cmake:62

Post by HansJuergenHalder »

Hello,

I fixed the issue by installing the Pico SDK in a different folder.

Unfortunately, the error message still appears.

chipfryer27
Valued Contributor
Posts: 1715
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 376 times
Been thanked: 590 times

Re: CMake Error at pico_sdk_import.cmake:62

Post by chipfryer27 »

Hi

Can you post your Flowcode file so we can have a look (.fcfx) ?

Regards

HansJuergenHalder
Posts: 19
Joined: Sat Dec 12, 2020 12:32 am

Re: CMake Error at pico_sdk_import.cmake:62

Post by HansJuergenHalder »

Hello,

Please find the test file attached.
Attachments
Flowcode1Pico.fcfx
(7.44 KiB) Downloaded 6 times

HansJuergenHalder
Posts: 19
Joined: Sat Dec 12, 2020 12:32 am

Re: CMake Error at pico_sdk_import.cmake:62

Post by HansJuergenHalder »

Hello

After installing Pico as described by Flowcode, I got the error message “Toolchain not available” again. I was able to resolve this error. The error pico_sdk_import.cmake still exists. However, I then realized that I could no longer compile Pico in VS Code. I let VS Code repair the pico-sdk. Now I can program the Pico in VS Code again. Then I struggled with the “Toolchain not available” problem again. I was able to solve this by installing the toolchain under pico-sdk, which VS Code had set up. This did not change the error message pico_sdk_import.cmake:62.

medelec35
Matrix Staff
Posts: 2103
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 652 times
Been thanked: 705 times

Re: CMake Error at pico_sdk_import.cmake:62

Post by medelec35 »

Hello.
I have just followed the instructions and installed PICO tool chain.
The version of Build tools is slightly different and I used a different location for pico-sdk directory.
At least it all worked first time and successfully programmed my PICO.
For that reason I have moved your topic from Bugs as it's not a Flowcode or Toolchain bug.
I would suggest to follow the instructions very carefully step by step.
Martin

Post Reply