I spent a day using ChatGPT, the getting started, Copilot to get a very basic project running. On a Mac.
Windows is fine, old machine...
Compiling projects is my daily routine, the RP2040 is giving me hard times.
What do I want: compile a Pico project on a Mac:
The first compile gives me an error:I can repeat this with all sorts of trying to set up a project.
which probably relates to:
pico_toolchain.cmake seems to be outdated, andthe sdk is present.
By luck chance, whatever I was able to get one example running. The folder still compiles, just this project in this folder as in CMAKE there is something hard coded:
probably here:The same errors apply, if I start a project in the command line.
Could someone help me, why I am not able to put out a simple hello world?
Windows is fine, old machine...
Compiling projects is my daily routine, the RP2040 is giving me hard times.
What do I want: compile a Pico project on a Mac:
The first compile gives me an error:
Code:
* Executing task: /Users/jan/.pico-sdk/ninja/v1.12.1/ninja -C /Users/jan/Nextcloud/2-dev/PiPico/test/build ninja: Entering directory `/Users/jan/Nextcloud/2-dev/PiPico/test/build'ninja: error: loading 'build.ninja': No such file or directory
which probably relates to:
Code:
jank@JanMax build % cmake ..PICO_SDK_PATH is /Users/jan/.pico-sdk/sdk/2.1.0Target board (PICO_BOARD) is 'pico_w'.Using board configuration from /Users/jan/.pico-sdk/sdk/2.1.0/src/boards/include/boards/pico_w.hPico Platform (PICO_PLATFORM) is 'rp2040'.CMake Error at /opt/homebrew/share/cmake/Modules/CMakeDetermineSystem.cmake:152 (message): Could not find toolchain file: /Users/jan/dev/pico/pico-sdk/external/pico_toolchain.cmakeCall Stack (most recent call first): CMakeLists.txt:31 (project)
pico_toolchain.cmake seems to be outdated, and
Code:
jank@JanMax external % ls /Users/jan/dev/pico/pico-sdk/external/pico_sdk_import.cmake
By luck chance, whatever I was able to get one example running. The folder still compiles, just this project in this folder as in CMAKE there is something hard coded:
probably here:
Code:
if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. include("/Users/jan/dev/pico/vscodeexample/blink/build/pico-sdk/cmake_install.cmake")endif()
Could someone help me, why I am not able to put out a simple hello world?
Statistics: Posted by swifty99 — Wed Jan 08, 2025 4:17 pm — Replies 1 — Views 30