I recently upgraded to version 2.1 of the SDK and the Visual Code builder for Windows. I used to be able to delete the build directory and just keep the CMakeLists.txt, my source and the .vscode folder that had launch.json and settings.json to use the debugger. If I do that with the new system, it complains that build/build.ninja is missing.
So, I created a new project from the blink example, renamed build to buildCopy and created an empty build directory and copied build/build.ninja and it complained that build/CMakeFiles/rules.ninja is missing. I then made a build/CMakeFiles directory and copied rules.ninja and the build process got into a loop trying to configure the project and gave up after 100 tries.
My current minimum guess is that it is OK to remove the following directories but keep all the other crud (which does work). It would be nice to keep less crud.
build/generated
build/pico-sdk
build/CMakeFiles/3.29.9
build/CMakeFiles/blink.dir
build/CMakeFiles/CMakeScratch
build/pkgRedirects
So, I created a new project from the blink example, renamed build to buildCopy and created an empty build directory and copied build/build.ninja and it complained that build/CMakeFiles/rules.ninja is missing. I then made a build/CMakeFiles directory and copied rules.ninja and the build process got into a loop trying to configure the project and gave up after 100 tries.
My current minimum guess is that it is OK to remove the following directories but keep all the other crud (which does work). It would be nice to keep less crud.
build/generated
build/pico-sdk
build/CMakeFiles/3.29.9
build/CMakeFiles/blink.dir
build/CMakeFiles/CMakeScratch
build/pkgRedirects
Code:
[0/100] Re-running CMake...PICO_SDK_PATH is C:/Users/ted_r/.pico-sdk/sdk/2.1.0Target board (PICO_BOARD) is 'pico'.Using board configuration from C:/Users/ted_r/.pico-sdk/sdk/2.1.0/src/boards/include/boards/pico.hPico Platform (PICO_PLATFORM) is 'rp2040'.Build type is ReleaseTinyUSB available at C:/Users/ted_r/.pico-sdk/sdk/2.1.0/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.BTstack available at C:/Users/ted_r/.pico-sdk/sdk/2.1.0/lib/btstackcyw43-driver available at C:/Users/ted_r/.pico-sdk/sdk/2.1.0/lib/cyw43-driverlwIP available at C:/Users/ted_r/.pico-sdk/sdk/2.1.0/lib/lwipmbedtls available at C:/Users/ted_r/.pico-sdk/sdk/2.1.0/lib/mbedtls-- Configuring done (0.3s)-- Generating done (0.6s)-- Build files have been written to: C:/Users/ted_r/Documents/Poo/hello_timer/buildninja: error: manifest 'build.ninja' still dirty after 100 tries, perhaps system time is not set
Statistics: Posted by trossin — Thu Dec 26, 2024 10:16 pm