[Python] CMake can't find pico/version.h even though it's in the build directory

Discussão em 'Python' iniciado por Stack, Março 30, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to compile a simple program using the Raspberry Pi Pico SDK. I ran python setup.py to set up all the necessary files and dependencies. However, when I try to compile my code, this happens:/

    python micro++.py compile --source blink.cpp -b RP2040 -a D:

    ERROR: Compilation failed
    ERROR: In file included from c:\PROJECTS\MicroCC\sdks\pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h:10,
    from blink.cpp:1:
    c:\PROJECTS\MicroCC\sdks\pico-sdk/src/common/pico_base_headers/include/pico.h:27:10: fatal error: pico/version.h: No such file or directory
    27 | #include "pico/version.h"
    | ^~~~~~~~~~~~~~~~
    compilation terminated.

    ERROR: Compilation failed


    https://github.com/az-xii/MicroXX-proj <-- Github Repo for the files

    Continue reading...

Compartilhe esta Página