I am wondering how the cmake based build in Windows is working for others.
At first I tried to install the windows tool chain setup file 2.0 exe and that installation always give error code 2 while installing. https://dl.espressif.com/dl/esp-idf-tools-setup-2.0.exe
Then I tried from scratch option by manually installing according to the document from expressif homepage. But most of the links are all 404 and error especially download link towards ninja.exe and mconf-idf. Somehow found all those by googling and finally I copied all into one folder along with the tool chain and added all to path variable. So far all good.
Now cloned esp-idf and then updated submodules. Then I invoked install.bat and export.bat and both worked without any error.
Now I copied an example hello_world folder parallel to esp-idf folder.
Now what to do?
Make won't work.
Cmake . Is giving error
According to document ( https://docs.espressif.com/projects/esp ... ratch.html ) I should do as below
cd %userprofile%\esp\hello_world
idf.py menuconfig
But where is idf.py ?
No where in document it is mentioned.
Overall a bad experience and most of the things are not working, most of the links in the guild is broken etc etc.
I have been using esp-idf from last 1 year till now in Linux and did many projects using esp32 but first time facing this much issue when I attempted to move to Windows. I tried the legacy MSYS2 but I want to use the latest method in Windows.
Somebody Please help
Unable to build esp32 code using cmake setup in Windows 10
-
- Posts: 27
- Joined: Thu Jun 08, 2017 12:59 pm
Re: Unable to build esp32 code using cmake setup in Windows 10
Idf.py is here https://github.com/espressif/esp-idf/bl ... ols/idf.py it should be added to path when you run export.bat
Re: Unable to build esp32 code using cmake setup in Windows 10
Hi vinodstanur, sorry for the bad experience.
(If that doesn't work, again, please post the exact error you are seeing, and we'll help troubleshoot the issue)
There is a slight trick we are doing with idf.py, to make it runnable from cmd.exe even if .py files are associated with an editor (which is quite common). We install a tool called idf.py.exe, and add it to the PATH using export.bat. When you run 'idf.py', idf.py.exe is executed. It looks up the location of the real idf.py using the environment variables, and runs 'python (path-to-idf.py)'.
When the installer fails, it offers to show a log of the installation. Could you please share that? We will look into the issue.vinodstanur wrote: ↑Thu Jul 18, 2019 8:11 pmAt first I tried to install the windows tool chain setup file 2.0 exe and that installation always give error code 2 while installing. https://dl.espressif.com/dl/esp-idf-tools-setup-2.0.exe
Could you please detail what error you are seeing?vinodstanur wrote: ↑Thu Jul 18, 2019 8:11 pmNow cloned esp-idf and then updated submodules. Then I invoked install.bat and export.bat and both worked without any error.
Now I copied an example hello_world folder parallel to esp-idf folder.
Now what to do?
Make won't work.
Cmake . Is giving error
idf.py itself is in the %IDF_PATH%\tools directory. If both install.bat and export.bat ran successfully, you should be able to run 'idf.py build' command in your project directory, without having to care where idf.py is located.vinodstanur wrote: ↑Thu Jul 18, 2019 8:11 pmAccording to document ( https://docs.espressif.com/projects/esp ... ratch.html ) I should do as below
cd %userprofile%\esp\hello_world
idf.py menuconfig
But where is idf.py ?
No where in document it is mentioned.
(If that doesn't work, again, please post the exact error you are seeing, and we'll help troubleshoot the issue)
There is a slight trick we are doing with idf.py, to make it runnable from cmd.exe even if .py files are associated with an editor (which is quite common). We install a tool called idf.py.exe, and add it to the PATH using export.bat. When you run 'idf.py', idf.py.exe is executed. It looks up the location of the real idf.py using the environment variables, and runs 'python (path-to-idf.py)'.
-
- Posts: 27
- Joined: Thu Jun 08, 2017 12:59 pm
Re: Unable to build esp32 code using cmake setup in Windows 10
When I tried to install IDF tool 2.0 exe, I am getting below error.
My configuration and ready to install page log is
Error log is as below:
Now I tried normal from scratch option by installing things manually.
Below is the toolchain installation folder details.
When I run install.bat, I am getting below result
When I run export.bat I am getting below result
My configuration and ready to install page log is
Code: Select all
Using Python 2.7:
C:\Python27\\python.exe
Using Git 2.22.0.windows.1:
C:\Program Files\Git\cmd\git.exe
Will download ESP-IDF v3.2.2 into:
C:\Users\VINOD S\Desktop\esp-idf
IDF tools directory (IDF_TOOLS_PATH):
C:\Users\VINOD S\.espressif
Error log is as below:
Code: Select all
2019-07-19 13:57:35.106 Log opened. (Time zone: UTC+05:30)
2019-07-19 13:57:35.106 Setup version: Inno Setup version 6.0.1-beta (u)
2019-07-19 13:57:35.106 Original Setup EXE: C:\Users\VINOD S\Downloads\esp-idf-tools-setup-2.0.exe
2019-07-19 13:57:35.106 Setup command line: /SL5="$6064A,204901974,721408,C:\Users\VINOD S\Downloads\esp-idf-tools-setup-2.0.exe"
2019-07-19 13:57:35.106 Windows version: 10.0.17763 (NT platform: Yes)
2019-07-19 13:57:35.106 64-bit Windows: Yes
2019-07-19 13:57:35.106 Processor architecture: x64
2019-07-19 13:57:35.106 User privileges: None
2019-07-19 13:57:35.107 Administrative install mode: No
2019-07-19 13:57:35.107 Install mode root key: HKEY_CURRENT_USER
2019-07-19 13:57:35.107 64-bit install mode: Yes
2019-07-19 13:57:35.110 Created temporary directory: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp
2019-07-19 13:57:35.125 -- DLL function import --
2019-07-19 13:57:35.125 Function name: idpAddFile
2019-07-19 13:57:35.125 DLL name: files:idp.dll
2019-07-19 13:57:35.125 Extracting temporary file: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.133 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.133 Importing the DLL function.
2019-07-19 13:57:35.144 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.144 -- DLL function import --
2019-07-19 13:57:35.144 Function name: idpAddFileComp
2019-07-19 13:57:35.144 DLL name: files:idp.dll
2019-07-19 13:57:35.144 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.144 Importing the DLL function.
2019-07-19 13:57:35.144 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.144 -- DLL function import --
2019-07-19 13:57:35.144 Function name: idpAddMirror
2019-07-19 13:57:35.144 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpAddFtpDir
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpAddFtpDirComp
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpClearFiles
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpFilesCount
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpFtpDirsCount
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpFileDownloaded
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpFilesDownloaded
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpDownloadFile
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpDownloadFiles
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpDownloadFilesComp
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpDownloadFilesCompUi
2019-07-19 13:57:35.145 DLL name: files:idp.dll
2019-07-19 13:57:35.145 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.145 Importing the DLL function.
2019-07-19 13:57:35.145 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.145 -- DLL function import --
2019-07-19 13:57:35.145 Function name: idpStartDownload
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpStopDownload
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetLogin
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetProxyMode
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetProxyName
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetProxyLogin
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpConnectControl
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpAddMessage
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetInternalOption
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetDetailedMode
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpSetComponents
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpReportError
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.146 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.146 Importing the DLL function.
2019-07-19 13:57:35.146 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.146 -- DLL function import --
2019-07-19 13:57:35.146 Function name: idpTrace
2019-07-19 13:57:35.146 DLL name: files:idp.dll
2019-07-19 13:57:35.147 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.147 Importing the DLL function.
2019-07-19 13:57:35.147 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.147 -- DLL function import --
2019-07-19 13:57:35.147 Function name: idpAddFileSize
2019-07-19 13:57:35.147 DLL name: files:idp.dll
2019-07-19 13:57:35.147 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.147 Importing the DLL function.
2019-07-19 13:57:35.147 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.147 -- DLL function import --
2019-07-19 13:57:35.147 Function name: idpAddFileSize
2019-07-19 13:57:35.147 DLL name: files:idp.dll
2019-07-19 13:57:35.147 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.147 Importing the DLL function.
2019-07-19 13:57:35.147 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.147 -- DLL function import --
2019-07-19 13:57:35.147 Function name: idpGetFileSize
2019-07-19 13:57:35.147 DLL name: files:idp.dll
2019-07-19 13:57:35.147 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.147 Importing the DLL function.
2019-07-19 13:57:35.147 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.147 -- DLL function import --
2019-07-19 13:57:35.147 Function name: idpGetFilesSize
2019-07-19 13:57:35.147 DLL name: files:idp.dll
2019-07-19 13:57:35.147 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idp.dll
2019-07-19 13:57:35.147 Importing the DLL function.
2019-07-19 13:57:35.147 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.147 -- DLL function import --
2019-07-19 13:57:35.147 Function name: proc_start
2019-07-19 13:57:35.147 DLL name: files:cmdlinerunner.dll
2019-07-19 13:57:35.147 Extracting temporary file: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\cmdlinerunner.dll
2019-07-19 13:57:35.154 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\cmdlinerunner.dll
2019-07-19 13:57:35.154 Importing the DLL function.
2019-07-19 13:57:35.616 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.616 -- DLL function import --
2019-07-19 13:57:35.616 Function name: proc_get_exit_code
2019-07-19 13:57:35.616 DLL name: files:cmdlinerunner.dll
2019-07-19 13:57:35.617 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\cmdlinerunner.dll
2019-07-19 13:57:35.617 Importing the DLL function.
2019-07-19 13:57:35.617 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.617 -- DLL function import --
2019-07-19 13:57:35.617 Function name: proc_get_output
2019-07-19 13:57:35.617 DLL name: files:cmdlinerunner.dll
2019-07-19 13:57:35.617 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\cmdlinerunner.dll
2019-07-19 13:57:35.617 Importing the DLL function.
2019-07-19 13:57:35.617 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.617 -- DLL function import --
2019-07-19 13:57:35.617 Function name: proc_end
2019-07-19 13:57:35.617 DLL name: files:cmdlinerunner.dll
2019-07-19 13:57:35.617 Dest DLL name: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\cmdlinerunner.dll
2019-07-19 13:57:35.617 Importing the DLL function.
2019-07-19 13:57:35.617 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.617 -- DLL function import --
2019-07-19 13:57:35.617 Function name: SetEnvironmentVariableW
2019-07-19 13:57:35.617 DLL name: kernel32.dll
2019-07-19 13:57:35.617 Dest DLL name: kernel32.dll
2019-07-19 13:57:35.617 Importing the DLL function.
2019-07-19 13:57:35.617 Successfully imported the DLL function. Delay loaded? No
2019-07-19 13:57:35.815 Found link in "For more infojects/esp-idf/en/latest/versions.html": "https://docs.espressif.com/projects/esp-idf/en/latest/versions.html"
2019-07-19 13:57:37.795 OnPythonPagePrepare
2019-07-19 13:57:37.796 In -2147483647\Software\Python\PythonCore
2019-07-19 13:57:37.796 In -2147483647\Software\Python\PythonCore\3.7-32
2019-07-19 13:57:37.796 Adding Python version=3.7 name=Python 3.7 (32-bit) executable=C:\Users\VINOD S\AppData\Local\Programs\Python\Python37-32\python.exe
2019-07-19 13:57:37.796 In -2147483646\Software\Python\PythonCore
2019-07-19 13:57:37.796 In -2147483646\Software\Python\PythonCore\2.7
2019-07-19 13:57:37.797 No ExecutablePath, using the default
2019-07-19 13:57:37.797 Adding Python version=2.7 name=Python 2.7 executable=C:\Python27\\python.exe
2019-07-19 13:57:39.570 OnPythonSelectionChange index=1
2019-07-19 13:57:40.921 OnPythonPageValidate index=1
2019-07-19 13:57:40.921 OnPythonPageValidate: PythonPath=C:\Python27\\ PythonExecutablePath=C:\Python27\\python.exe
2019-07-19 13:57:40.929 OnGitPagePrepare
2019-07-19 13:57:41.120 Git path: C:\Program Files\Git\cmd\git.exe
2019-07-19 13:57:41.120 Running /C "C:\Program Files\Git\cmd\git.exe" --version >gitver.txt
2019-07-19 13:57:41.232 Git version: 2.22.0.windows.1
2019-07-19 13:57:41.232 Adding Git version=2.22.0.windows.1 name=2.22.0.windows.1 executable=C:\Program Files\Git\cmd\git.exe
2019-07-19 13:57:42.585 OnGitPageValidate index=0
2019-07-19 13:57:42.595 OnIDFPagePrepare
2019-07-19 13:57:44.362 OnIDFPageValidate index=0
2019-07-19 13:57:44.371 OnIDFDownloadPagePrepare
2019-07-19 13:57:45.032 Downloaded https://dl.espressif.com/dl/esp-idf/idf_versions.txt to C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\idf_versions.txt
2019-07-19 13:57:45.033 Versions count: 4
2019-07-19 13:57:45.033 Version 0: v3.2.2
2019-07-19 13:57:45.034 Version 1: release/v3.2
2019-07-19 13:57:45.035 Version 2: release/v3.3
2019-07-19 13:57:45.036 Version 3: master
2019-07-19 13:58:01.641 OnIDFDownloadPageValidate index=0
2019-07-19 13:58:01.648 Summary message:
Using Python 2.7:
C:\Python27\\python.exe
Using Git 2.22.0.windows.1:
C:\Program Files\Git\cmd\git.exe
Will download ESP-IDF v3.2.2 into:
C:\Users\VINOD S\Desktop\esp-idf
IDF tools directory (IDF_TOOLS_PATH):
C:\Users\VINOD S\.espressif
2019-07-19 13:59:35.922 GetIDFZIPFileVersion(v3.2.2)=v3.2.2
2019-07-19 13:59:35.922 C:\Users\VINOD S\.espressif\releases\esp-idf-v3.2.2.zip already exists
2019-07-19 13:59:35.929 Calling RestartManager's RmGetList.
2019-07-19 13:59:35.934 RmGetList finished successfully.
2019-07-19 13:59:35.934 RestartManager found no applications using one of our files.
2019-07-19 13:59:35.940 Starting the installation process.
2019-07-19 13:59:35.943 Directory for uninstall files: C:\Users\VINOD S\.espressif
2019-07-19 13:59:35.944 Will append to existing uninstall log: C:\Users\VINOD S\.espressif\unins000.dat
2019-07-19 13:59:35.960 -- File entry --
2019-07-19 13:59:35.961 Dest filename: C:\Users\VINOD S\.espressif\unins000.exe
2019-07-19 13:59:35.961 Non-default bitness: 32-bit
2019-07-19 13:59:35.962 Time stamp of our file: 2019-07-19 13:57:34.930
2019-07-19 13:59:35.962 Dest file exists.
2019-07-19 13:59:35.962 Time stamp of existing file: 2019-07-18 23:05:03.742
2019-07-19 13:59:35.963 Version of our file: 51.1052.0.0
2019-07-19 13:59:35.965 Version of existing file: 51.1052.0.0
2019-07-19 13:59:35.965 Installing the file.
2019-07-19 13:59:36.020 Leaving temporary file in place for now.
2019-07-19 13:59:36.020 -- File entry --
2019-07-19 13:59:36.021 Dest filename: C:\Users\VINOD S\.espressif\idf_tools_fallback.py
2019-07-19 13:59:36.021 Time stamp of our file: 2019-07-01 05:51:42.000
2019-07-19 13:59:36.021 Dest file exists.
2019-07-19 13:59:36.021 Time stamp of existing file: 2019-07-01 05:51:42.000
2019-07-19 13:59:36.021 Version of our file: (none)
2019-07-19 13:59:36.022 Version of existing file: (none)
2019-07-19 13:59:36.022 Installing the file.
2019-07-19 13:59:36.045 Successfully installed the file.
2019-07-19 13:59:36.045 -- File entry --
2019-07-19 13:59:36.046 Dest filename: C:\Users\VINOD S\.espressif\tools_fallback.json
2019-07-19 13:59:36.046 Time stamp of our file: 2019-07-01 05:51:44.000
2019-07-19 13:59:36.046 Dest file exists.
2019-07-19 13:59:36.046 Time stamp of existing file: 2019-07-01 05:51:44.000
2019-07-19 13:59:36.046 Version of our file: (none)
2019-07-19 13:59:36.048 Version of existing file: (none)
2019-07-19 13:59:36.048 Installing the file.
2019-07-19 13:59:36.049 Successfully installed the file.
2019-07-19 13:59:36.049 -- File entry --
2019-07-19 13:59:36.050 Dest filename: C:\Users\VINOD S\.espressif\idf_cmd_init.bat
2019-07-19 13:59:36.051 Time stamp of our file: 2019-07-01 05:51:44.000
2019-07-19 13:59:36.051 Dest file exists.
2019-07-19 13:59:36.051 Time stamp of existing file: 2019-07-01 05:51:44.000
2019-07-19 13:59:36.051 Version of our file: (none)
2019-07-19 13:59:36.052 Version of existing file: (none)
2019-07-19 13:59:36.052 Installing the file.
2019-07-19 13:59:36.053 Successfully installed the file.
2019-07-19 13:59:36.053 -- File entry --
2019-07-19 13:59:36.054 Dest filename: C:\Users\VINOD S\.espressif\dist\binutils-esp32ulp-win32-2.28.51-esp32ulp-20180809.zip
2019-07-19 13:59:36.054 Time stamp of our file: 2019-03-25 22:01:50.000
2019-07-19 13:59:36.054 Dest file exists.
2019-07-19 13:59:36.054 Time stamp of existing file: 2019-03-25 22:01:50.000
2019-07-19 13:59:36.054 Version of our file: (none)
2019-07-19 13:59:36.056 Version of existing file: (none)
2019-07-19 13:59:36.056 Installing the file.
2019-07-19 13:59:36.565 Successfully installed the file.
2019-07-19 13:59:36.566 -- File entry --
2019-07-19 13:59:36.567 Dest filename: C:\Users\VINOD S\.espressif\dist\cmake-3.13.4-win64-x64.zip
2019-07-19 13:59:36.568 Time stamp of our file: 2019-03-25 22:02:52.000
2019-07-19 13:59:36.568 Dest file exists.
2019-07-19 13:59:36.568 Time stamp of existing file: 2019-03-25 22:02:52.000
2019-07-19 13:59:36.568 Version of our file: (none)
2019-07-19 13:59:36.570 Version of existing file: (none)
2019-07-19 13:59:36.570 Installing the file.
2019-07-19 13:59:38.378 Successfully installed the file.
2019-07-19 13:59:38.378 -- File entry --
2019-07-19 13:59:38.378 Dest filename: C:\Users\VINOD S\.espressif\dist\idf-exe-v1.0.zip
2019-07-19 13:59:38.378 Time stamp of our file: 2019-06-26 09:09:44.000
2019-07-19 13:59:38.378 Dest file exists.
2019-07-19 13:59:38.378 Time stamp of existing file: 2019-06-26 09:09:44.000
2019-07-19 13:59:38.378 Version of our file: (none)
2019-07-19 13:59:38.379 Version of existing file: (none)
2019-07-19 13:59:38.379 Installing the file.
2019-07-19 13:59:38.381 Successfully installed the file.
2019-07-19 13:59:38.381 -- File entry --
2019-07-19 13:59:38.381 Dest filename: C:\Users\VINOD S\.espressif\dist\mconf-v4.6.0.0-idf-20190628-win32.zip
2019-07-19 13:59:38.381 Time stamp of our file: 2019-06-28 01:46:10.000
2019-07-19 13:59:38.381 Dest file exists.
2019-07-19 13:59:38.382 Time stamp of existing file: 2019-06-28 01:46:10.000
2019-07-19 13:59:38.382 Version of our file: (none)
2019-07-19 13:59:38.383 Version of existing file: (none)
2019-07-19 13:59:38.383 Installing the file.
2019-07-19 13:59:38.435 Successfully installed the file.
2019-07-19 13:59:38.435 -- File entry --
2019-07-19 13:59:38.435 Dest filename: C:\Users\VINOD S\.espressif\dist\ninja-1.9.0-win64.zip
2019-07-19 13:59:38.436 Time stamp of our file: 2019-03-25 22:55:36.000
2019-07-19 13:59:38.436 Dest file exists.
2019-07-19 13:59:38.436 Time stamp of existing file: 2019-03-25 22:55:36.000
2019-07-19 13:59:38.436 Version of our file: (none)
2019-07-19 13:59:38.437 Version of existing file: (none)
2019-07-19 13:59:38.437 Installing the file.
2019-07-19 13:59:38.453 Successfully installed the file.
2019-07-19 13:59:38.453 -- File entry --
2019-07-19 13:59:38.453 Dest filename: C:\Users\VINOD S\.espressif\dist\openocd-esp32-win32-0.10.0-esp32-20190313.zip
2019-07-19 13:59:38.453 Time stamp of our file: 2019-03-25 22:03:24.000
2019-07-19 13:59:38.453 Dest file exists.
2019-07-19 13:59:38.454 Time stamp of existing file: 2019-03-25 22:03:24.000
2019-07-19 13:59:38.454 Version of our file: (none)
2019-07-19 13:59:38.455 Version of existing file: (none)
2019-07-19 13:59:38.455 Installing the file.
2019-07-19 13:59:38.578 Successfully installed the file.
2019-07-19 13:59:38.578 -- File entry --
2019-07-19 13:59:38.578 Dest filename: C:\Users\VINOD S\.espressif\dist\xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-win32.zip
2019-07-19 13:59:38.578 Time stamp of our file: 2019-06-12 02:02:58.000
2019-07-19 13:59:38.578 Dest file exists.
2019-07-19 13:59:38.578 Time stamp of existing file: 2019-06-12 02:02:58.000
2019-07-19 13:59:38.578 Version of our file: (none)
2019-07-19 13:59:38.580 Version of existing file: (none)
2019-07-19 13:59:38.580 Installing the file.
2019-07-19 13:59:42.490 Successfully installed the file.
2019-07-19 13:59:42.490 -- File entry --
2019-07-19 13:59:42.491 Dest filename: C:\Users\VINOD S\.espressif\dist\xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip
2019-07-19 13:59:42.491 Time stamp of our file: 2019-03-25 22:01:26.000
2019-07-19 13:59:42.491 Dest file exists.
2019-07-19 13:59:42.491 Time stamp of existing file: 2019-03-25 22:01:26.000
2019-07-19 13:59:42.491 Version of our file: (none)
2019-07-19 13:59:42.492 Version of existing file: (none)
2019-07-19 13:59:42.492 Installing the file.
2019-07-19 13:59:49.514 Successfully installed the file.
2019-07-19 13:59:49.515 -- Registry entry --
2019-07-19 13:59:49.515 Key: HKEY_CURRENT_USER\Environment
2019-07-19 13:59:49.515 Value name: IDF_TOOLS_PATH
2019-07-19 13:59:49.515 Creating or opening the key.
2019-07-19 13:59:49.515 Successfully created the key.
2019-07-19 13:59:49.515 Saving uninstall information.
2019-07-19 13:59:49.515 Renaming uninstaller.
2019-07-19 13:59:49.516 Deleting uninstall key left over from previous non administrative install.
2019-07-19 13:59:49.516 Creating new uninstall key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\{9E068D99-5C4B-4E5F-96A3-B17CF291E6BD}_is1
2019-07-19 13:59:49.516 Writing uninstall key values.
2019-07-19 13:59:49.517 Detected previous administrative 64-bit install? No
2019-07-19 13:59:49.517 Detected previous administrative 32-bit install? No
2019-07-19 13:59:49.521 Installation process succeeded.
2019-07-19 13:59:49.526 Setting PATH for this process: C:\Python27\\;C:\Program Files\Git\cmd\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\serialplot\bin;C:\Program Files\CMake\bin;C:\Users\VINOD S\AppData\Local\Microsoft\WindowsApps;C:\avr_toolchain\avr8-gnu-toolchain-win32_x86\bin;C:\Program Files (x86)\gnu-make\make-3.81-bin.zip\bin;C:\Program Files (x86)\GnuWin32\bin;C:\esp32_win_toolchain;C:\esp32_win_toolchain\xtensa-esp32-elf\bin;C:\Python27;
2019-07-19 13:59:49.526 PYTHONPATH=
2019-07-19 13:59:49.526 Extracting temporary file: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\7za.exe
2019-07-19 13:59:49.563 Extracting ESP-IDF reference repository: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\7za.exe x -oC:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp -r -aoa C:\Users\VINOD S\.espressif\releases\esp-idf-v3.2.2.zip
2019-07-19 13:59:49.563 Reference repository path: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\esp-idf-v3.2.2
2019-07-19 13:59:49.680 Done, exit code=2
2019-07-19 13:59:49.680 --------
2019-07-19 13:59:49.680 Running command: C:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp\7za.exe x -oC:\Users\VINODS~1\AppData\Local\Temp\is-SGFBT.tmp -r -aoa C:\Users\VINOD S\.espressif\releases\esp-idf-v3.2.2.zip
7-Zip (a) 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
ERROR: The system cannot find the file specified.
C:\Users\VINOD
System ERROR:
The system cannot find the file specified.
2019-07-19 13:59:49.680 --------
2019-07-19 13:59:49.680 Message box (OK):
Installation has failed with exit code 2
2019-07-19 13:59:54.106 User chose OK.
2019-07-19 13:59:54.114 Message box (Yes/No):
Installation log has been created, it may contain more information about the problem.
Display the installation log now?
2019-07-19 13:59:56.146 User chose Yes.
2019-07-19 13:59:56.173 CurStepChanged raised an exception.
Now I tried normal from scratch option by installing things manually.
Below is the toolchain installation folder details.
Code: Select all
Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\esp32_win_toolchain>dir
Volume in drive C is OS
Volume Serial Number is 3019-3340
Directory of C:\esp32_win_toolchain
19-07-2019 00:01 <DIR> .
19-07-2019 00:01 <DIR> ..
19-07-2019 00:00 606 AUTHORS
19-07-2019 00:00 18,943 COPYING
19-07-2019 00:00 898,048 libiconv2.dll
19-07-2019 00:00 103,424 libintl3.dll
19-07-2019 00:00 135,680 mconf-idf.exe
18-07-2019 23:52 525,824 ninja.exe
19-07-2019 00:00 908 README
19-07-2019 00:00 79,360 regex2.dll
19-07-2019 00:01 <DIR> xtensa-esp32-elf
8 File(s) 1,762,793 bytes
3 Dir(s) 246,836,727,808 bytes free
C:\esp32_win_toolchain>
Code: Select all
Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.
D:\Projects\esp32\esp-idf>install.bat
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping xtensa-esp32-elf@esp32-2019r1-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Skipping cmake@3.13.4 (already installed)
Skipping openocd-esp32@v0.10.0-esp32-20190313 (already installed)
Skipping mconf@v4.6.0.0-idf-20190628 (already installed)
Skipping ninja@1.9.0 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)
Setting up Python environment
Installing Python packages from D:\Projects\esp32\esp-idf\requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: setuptools in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 4)) (41.0.1)
Requirement already satisfied: click>=5.0 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 8)) (7.0)
Requirement already satisfied: pyserial>=3.0 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 9)) (3.4)
Requirement already satisfied: future>=0.15.2 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 10)) (0.17.1)
Requirement already satisfied: cryptography>=2.1.4 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (2.7)
Requirement already satisfied: pyparsing<2.4.0,>=2.0.3 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 12)) (2.3.1)
Requirement already satisfied: pyelftools>=0.22 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from -r D:\Projects\esp32\esp-idf\requirements.txt (line 13)) (0.25)
Requirement already satisfied: enum34; python_version < "3" in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (1.1.6)
Requirement already satisfied: asn1crypto>=0.21.0 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (0.24.0)
Requirement already satisfied: ipaddress; python_version < "3" in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (1.0.22)
Requirement already satisfied: six>=1.4.1 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (1.12.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (1.12.3)
Requirement already satisfied: pycparser in c:\users\vinod s\.espressif\python_env\idf4.0_py2.7_env\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.1.4->-r D:\Projects\esp32\esp-idf\requirements.txt (line 11)) (2.19)
All done! You can now run:
export.bat
D:\Projects\esp32\esp-idf>
When I run export.bat I am getting below result
Code: Select all
D:\Projects\esp32\esp-idf>export.bat
Setting IDF_PATH: D:\Projects\esp32\esp-idf
Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.14.6.
C:\Users\VINOD S\.espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin
C:\Users\VINOD S\.espressif\tools\cmake\3.13.4\bin
C:\Users\VINOD S\.espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin
C:\Users\VINOD S\.espressif\tools\idf-exe\1.0.1\
C:\Users\VINOD S\.espressif\tools\ccache\3.7\
C:\Users\VINOD S\.espressif\python_env\idf4.0_py2.7_env\Scripts
D:\Projects\esp32\esp-idf\tools
Checking if Python packages are up to date...
Python requirements from D:\Projects\esp32\esp-idf\requirements.txt are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
D:\Projects\esp32\esp-idf>
-
- Posts: 27
- Joined: Thu Jun 08, 2017 12:59 pm
Re: Unable to build esp32 code using cmake setup in Windows 10
Now I tried again and it worked!! I am not sure why it didn't worked earlier.
But the installer is not working anyways. The manual setup is working now.
Thanks and I think it is solved except the installer setup is not working and the link towards ninja and the mconf-idf is totally broken and need to find it from google by trusting the executables are not virus.
May be expressif can correct their documents by keeping working links.
I have one more question, earlier with make setup I can utilize the entire CPU cores by make -j4 or -j7.
In this setup how will I ensure I am using the complete cores for fast build ?
But the installer is not working anyways. The manual setup is working now.
Thanks and I think it is solved except the installer setup is not working and the link towards ninja and the mconf-idf is totally broken and need to find it from google by trusting the executables are not virus.
May be expressif can correct their documents by keeping working links.
I have one more question, earlier with make setup I can utilize the entire CPU cores by make -j4 or -j7.
In this setup how will I ensure I am using the complete cores for fast build ?
Re: Unable to build esp32 code using cmake setup in Windows 10
This is weird because I tried the installer and it worked perfect the first time on Win10. I wonder if the problem is the space in your user name.May be expressif can correct their documents by keeping working links.
I have one more question, earlier with make setup I can utilize the entire CPU cores by make -j4 or -j7.
In this setup how will I ensure I am using the complete cores for fast build ?
For make, yes you can increase compile time with the -jx (x being specific for your machine)
I don't believe this matters much anymore using CMake when using idy.py build.
Re: Unable to build esp32 code using cmake setup in Windows 10
Okay, thanks for the extra details. The installer fails due to a space character in the user name. We will fix this bug in the installer and release a new version.
Note that since install.bat and export.bat work correctly, you don't need to assemble all the tools manually as you did with the esp32_win_toolchain folder.
(install.bat serves the same purpose as the IDF Tools Installer, except that the latter also can install Git, Python, and download ESP-IDF.)
Regarding making use of all the CPU cores, this should happen automatically: "ninja" build tool which is used behind the scenes will detect the number of cores and run the build in parallel.
Note that since install.bat and export.bat work correctly, you don't need to assemble all the tools manually as you did with the esp32_win_toolchain folder.
(install.bat serves the same purpose as the IDF Tools Installer, except that the latter also can install Git, Python, and download ESP-IDF.)
Regarding making use of all the CPU cores, this should happen automatically: "ninja" build tool which is used behind the scenes will detect the number of cores and run the build in parallel.
Who is online
Users browsing this forum: No registered users and 85 guests