-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmake executable issue w/Pico-examples Projects #582
Comments
Can you try deleting your build folder and see if it's still a problem? |
Hi Peter, i am still not so profound/proficient w/the visual studio project folder structure.. tried my best to locate the build folder, but cudn't. can u give me a few simple steps to locate the build folder and then i can delete it. here is also the additional copy of error on the o/p console : [main] Building folder: pico-examples thanks |
Hi Peter, located the build folder inside the pico-sdk folder abd deleted it. I gave the build cmd again and the same problem persists. pls guide further w/this issue and how to solve this.. |
Are you running on Windows or Linux or Mac? |
i am running it on windows 11 home edition |
@will-v-pi Have you heard of this error before? |
No, but it sounds like the configuration is quite weird, especially if the build folder for pico-examples is inside the pico-sdk folder? Could you check the value of |
Hi Will-V-Pi, do not mis understand my communication chronology as "pico-examples folder is inside the pico-sdk folder". just that being a novice to VS environment i happened to find the SDK build folder 1st and deleted it. then i restored it and then found the pico-examples build folder and deleted it which is what Peter wanted me to do exactly. Will soon post the value of cmake.cmakePath in my .vscode/settings.json file.... |
Hi Will-v-Pi, here is my .vscode/settings.json file contents below - i dont see any cmake.cmakePath line though... ` "cmake.statusbar.advanced": { ` |
You may have it configured more globally than that file then - could you see if you've modified it in your settings elsewhere? You can view settings from File -> Preferences -> Settings, then search for If it's set to the default Also, if you're using the deprecated pico-setup-windows installer (which I think you are given the comment at the top of that settings file), make sure you're using the Pico VS Code, rather than the regular VS Code. |
Hi Will, found that it is set to default 'cmake' and i dont have cmake installed in my path. How do i now install Pico VS Code? |
That was for the deprecated pico-setup-windows installer, which would have added an alias called Instead of using that deprecated setup, I'd recommend using the new Pico VS Code Extension which is documented in the Getting Started guide PDF. Make sure you uninstall the old setup first (go to "Add or remove programs" and uninstall "Raspberry Pi Pico SDK v1.5.1" is it's there). |
trying it.... |
Hi Will, tried all the above steps as u mentioned..now sdk2.1.0 is installed, but,compilation fails as below: btw i am not able to locate a compiler w/sdk 2.1.0 version, u can see that still i can only select the old compiler for the build .i.e....sdk v1.5.1 pasted the failure below: this is when i import/create the blink project via pico vs code extension installed and sdk 2.1.0 gets installed automatically on the 1st time. the new blink project throws the below failure. CMake Error at C:/Users/vijay/.pico-sdk/cmake/v3.29.9/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):The C compiler "C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: 'C:/Users/vijay/Documents/Pico-v1.5.1/pico-examples/blink/build/CMakeFiles/CMakeScratch/TryCompile-zc4ykr' Run Build Command(s): C:/Users/vijay/.pico-sdk/ninja/v1.12.1/ninja.exe -v cmTC_cbce5 CMake will not be able to correctly generate this project. |
Yes, it looks like your system is still trying to use the old pico-setup-windows compiler. Make sure that is completely uninstalled before trying to use the new VS Code extension, including all files, registry entries, and environment variable settings. |
I was able to compile all the pico-examples Projects 2 months ago. Now i tried doing the same and the experience build errors.
I have copied text of the build Errors when building below:
build errors ---> Build failed: Unable to configure the project Bad CMake executable: "". Check to make sure it is installed or the value of the "cmake.cmakePath" setting contains the correct path
The text was updated successfully, but these errors were encountered: