Deouss wrote:UPDATE: I resolved the errors. Paths for needed headers were actually in Program Files folder - for some reason.
All compiled after running idf.py build. Compilation under VS Code
I'm glad you got everything working. I don't fully understand what you're telling me here - do you mean to begin with you were using VS Code and got the error, then you ran idf.py and it worked? Does VS Code work now as well?
Deouss wrote:Not sure because I was using VM and nothing was connected through USB.
So confirming that CMake works and I don't know if I can make it compile faster.
Msys32 uses some multi core features - -j8 option or something?
If you're using Ninja as the final build tool[*] then it should automatically detect the number of cores you have and parallelise automatically. If the VM itself only has one core then it can't parallelise very much, though! Depending on your VM host software, you should be able to assign additional core(s) to the VM in its configuration.
"make -j8" (or similar) will work for the MSYS-based build system or if you use CMake to generate a Makefile.
[*] If you followed the default install directions then idf.py will be using Ninja, VSCode might be using something else.