-
Notifications
You must be signed in to change notification settings - Fork 238
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
ESP-IDF-4 - notes regarding building on windows from earlier versions #546
Comments
Hi @wilberforce — thank you for the suggestions and for trying out the ESP-IDF 4.2 preview! Good point on de-listing old Python versions. I'll make a note about that in the "Windows-Updating" section of the docs. You're right that using On the |
Thanks @andycarle
%comspec% /k ""%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" && pushd %IDF_PATH% && %IDF_TOOLS_PATH%\idf_cmd_init.bat %LOCALAPPDATA%\Programs\Python\Python38-32 %ProgramFiles(x86)%\Git\cmd && popd"
There are references to
Thinking about this - do we just need to add the |
Thank you for the documentation suggestions, @wilberforce! I love all this shortcut property cleverness... it feels very retro. I've incorporated your suggestions into our documentation locally. That will make it to GitHub in our next open source push.
This one I'm a bit hesitant to do. You're right that making this change would solve a common problem for new users. But it is also often sufficient to do an incremental build of the tools--especially for those of us who actively work on the tools themselves. One option here would be to have build.bat take an argument to choose which behavior you want. Or, as you note, to have two different batch files for the two types of builds... I'll think on that one a bit. |
|
Yeah, I like the idea of having |
Speaking of Windows build improvements... @wilberforce, would you be willing to test something for me? On my own Windows machine, I've been running for months with a set of changes that improve the parallelism of our (non-device) builds. They work well on my system, but I would love to hear if they are stable and helpful on other build hosts. The changes speed up builds for the simulator a bit, but the difference is most dramatic on tools builds. There's a set of changes to use better makefile rules/recipes to get some multi-processor building out of Then, for the truly adventurous, there's a new (optional) I've attached those changes as a diff off of the current GitHub top-of-tree. If you feel like giving them a try, let me know how they turn out! - Andy (reposted to fix an issue with the attachment) |
Hi, On my crusty laptop - the tools normal build takes 6:30 ( it might have been slightly quicker - as I missed the stop watch near the end) I had trouble applying you patch:
Perhaps if you do this as another branch I could then pull that? The top of tree branch I have does not seem to have the |
I have pulled from the main public branch and updated the build tools. Everything built as expected. |
Build environment: Windows
Target device: ESP32
Notes on updating from IDF 3.2
errors around Python module
click
not foundCheck python27 is on the system path and getting found before python 3:
remove:
Launch script
C:\Windows\system32\cmd.exe /k ""C:\Users\<username>\.espressif\idf_cmd_init.bat" "C:\Users\<username>\AppData\Local\Programs\Python\Python38-32\" "C:\Program Files\Git\cmd\""
can be simplified to:
C:\Windows\system32\cmd.exe /k ""%USERPROFILE%.espressif\idf_cmd_init.bat" "%USERPROFILE%\AppData\Local\Programs\Python\Python38-32\" "C:\Program Files\Git\cmd\""
with the setup as documented, when launching the cmd prompt I see:
This script must be invoked from ESP-IDF directory.
set env var:
MODDABLE_ESP32_LAUNCH
""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" && pushd %IDF_PATH% && "%USERPROFILE%\.espressif\idf_cmd_init.bat" "%USERPROFILE%\AppData\Local\Programs\Python\Python38-32\" "C:\Program Files\Git\cmd\" && popd"
and in the target set the directory to default repos folder.
When the
popd
is execute the cmd prompt is then in your repository folders.The text was updated successfully, but these errors were encountered: