esp32: build error on windows with sed expression
ESP32 Build error!
Windows : String in ESP-IDF Cmd windows
C:\micropython\ports\esp32>make USER_C_MODULES=../../../examples/usercmodule/micropython.cmake
[1152/1386] Generating ../../genhdr/qstrdefs.preprocessed.h
FAILED: genhdr/qstrdefs.preprocessed.h C:/micropython/ports/esp32/build-generic/genhdr/qstrdefs.preprocessed.h
esp-idf\main\CMakeFiles\qstrdefs.preprocessed.h-0fb6a53.bat 5964d331c9989f35
sed: -e expression #1, char 10: unterminated `s' command
'"/"' is not recognized as an internal or external command,
operable program or batch file.
[1154/1386] Generating ../../genhdr/root_pointers.h
ESP32 build error
Windows
ESP-IDF 4.4 cmd
idf.py -D MICROPY_BOARD=GENERIC_SPIRAM build
[1153/1380] Generating ../../genhdr/qstrdefs.preprocessed.h
FAILED: genhdr/qstrdefs.preprocessed.h C:/micropython/ports/esp32/build/genhdr/qstrdefs.preprocessed.h
esp-idf\main\CMakeFiles\qstrdefs.preprocessed.h-0fb6a53.bat 7fb35ac92d7b64e3
cat: C:/micropython/ports/esp32/build/genhdr/qstrdefs.collected.h: No such file or directory
sed: -e expression #1, char 10: unterminated `s' command
'"/"' is not recognized as an internal or external command,
operable program or batch file.
[1154/1380] Generating ../../genhdr/moduledefs.h
FAILED: genhdr/moduledefs.h C:/micropython/ports/esp32/build/genhdr/moduledefs.h
cmd.exe /C "cd /D C:\micropython\ports\esp32\build\esp-idf\main && C:\Users\Admin\AppData\Local\Programs\Python\Python39\python3.exe C:/micropython/py/makemoduledefs.py C:/micropython/ports/esp32/build/genhdr/moduledefs.collected > C:/micropython/ports/esp32/build/genhdr/moduledefs.h"
Traceback (most recent call last):
File "C:\micropython\py\makemoduledefs.py", line 82, in <module>
main()
File "C:\micropython\py\makemoduledefs.py", line 77, in main
modules = find_module_registrations(args.file[0])
File "C:\micropython\py\makemoduledefs.py", line 27, in find_module_registrations
with io.open(filename, encoding="utf-8") as c_file_obj:
FileNotFoundError: [Errno 2] No such file or directory: 'C:/micropython/ports/esp32/build/genhdr/moduledefs.collected'
ninja: build stopped: subcommand failed.
ninja failed with exit code 1