Replies: 1 comment 1 reply
-
Just for some background context, is there a particular reason you want to be able to use msys2 as your build environment? I ask because I was a daily user of msys2 as the foundation of my development environment for many years, but this is going back 8-10 years ago. Since wsl was released I switched completely to that and never looked back. Doubly so with docker now, it can be leveraged to make development and compiling just so easy. Even on windows, if you install docker, you can then never look at it again directly by using That being said I know it's intended to work on native windows / docker, but is mostly used from wsl / Linux so sometimes the windows support gets accidentally broken. It's usually fixed quickly though I believe. If you're interested, take a look at https://github.com/mattytrentini/mpbuild Otherwise please do share what you like about msys2! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since it is widely agreed that esp-idf (on Windows) requires
make CROSS
to first generatempy-cross.exe
in themicropython\mpy-cross
build directory, I successfully installed the toolchain in the Windows 10 msys2 environment and ranmake
inmicropython\mpy-cross
, which worked. Testingmake CROSS=1
inmicropython\ports\minimal
also succeeded.However, running
make CROSS
inmicropython\ports\esp32
requiresidf.py
from esp-idf, which cannot be launched in the msys2 terminal (it throws an error about missingimport click
). Naturally, I proceeded to install esp-idf using the Windows installer. My question is: how can the esp-idf Windows CMD terminal and the msys2 Linux-like terminal work together?Should I run
idf.py build
in the esp-idf Windows CMD terminal (and if so, how can it utilize the msys2make
cross-compilation toolchain andmpy-cross.exe
)? Or should I runmake CROSS=1
in the msys2 terminal (for themicropython\ports\esp32
directory—and if so, how would it recognize that esp-idf is already installed)?Beta Was this translation helpful? Give feedback.
All reactions