-
Notifications
You must be signed in to change notification settings - Fork 76
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
Project Generator not compatible with SDK version 1.5 on Windows? #68
Comments
Hi, thanks for the report, I'll try and find the time to look in to this. |
@kilograham Hi Graham, do you know the runes for a ninja build on windows to replicate the current "cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" .." |
I suspect it is as simple as : cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja .. then
|
yes (assuming the installer puts ninja in the path) |
Modified pico_project.py starting from line 1341:
seems to work fine. Many Thanks! |
With the modifications described above, compiling was possible, but I ran into problems when trying to debug using VSCode. It turned out that the JSON files generated in the .vscode directory do not match the settings needed for the SDK installed using "pico-setup-windows-x64-standalone.exe". I modified the python script to add a function that generates the JSON files of the .vscode direcory in the examples folder. I am by far not an expert on these settings, so if someone with knowledge could have a look at it and maybe this code could be added in a future version of the pico project generator. Here is the function:
And further down in the code, an if-clause to choose these files if on Windows:
|
Think I need to have a chat with the VSCode dev on this one...! |
Hi, I just pushed a possible fix for all this to https://github.com/raspberrypi/pico-project-generator/tree/update_vscode_json_to_sdk1_5 Testing would be appreciated. |
Tested. Test environment:
Started project generator in GUI mode, made a test project, opened VSCode, opened the directory of the test project and VSCode started working. I can find no obvious errors in this JSON file, but I am not an expert on VSCode settings... Klicked on CMake icon in the tool bar on the left and built the projekt. Everything ran smoothly with no error message. |
Looks to be a backslash/forward slash parsing issue on path names. Will take a look |
OK, this was actually a backslash escape issue, I think Windows paths need a double backslash in JSON files. So have added this and pushed to this branch for testing. |
Hi
I installed the C/C++ SDK by running "pico-setup-windows-x64-standalone.exe" and then downloaded the Pico Project Generator. The Project Generator did not run because tkinter is missing (I posted this as a separate issue on github.com/raspberrypi/pico-setup-windows/issues/12).
I then installed a new version of Python manually and changed the python path in "pico-env.cmd" to point to that newly installed python.exe. With this trick, tkinter was present and I was able to run the Project Generator in GUI mode.
However, when trying to create a new project, the error message appears:
_CMake Error at CMakeLists.txt:21 (project):
Running
'nmake' '-?'
failed with:
Das System kann die angegebene Datei nicht finden (=file not found)._
As far as I understand, the SDK installer for Windows sets up CMake to use ninja and not nmake (anymore). Is there a possibility to make the Project Generator compatible with the latest version of the SDK installer for Windows?
Thx.
The text was updated successfully, but these errors were encountered: