Compilation Problem on Windows

I’m having a problem to compile, at “ninja aseprite”:

[3/1261] Building CXX object third_party/fmt/CMakeFiles/fmt.dir/src/format.cc.obj
FAILED: third_party/fmt/CMakeFiles/fmt.dir/src/format.cc.obj
C:\MinGW\bin\c++.exe  -DCMARK_STATIC_DEFINE -DNDEBUG -DPNG_NO_MMX_CODE -I../third_party/zlib -Ithird_party/zlib -I../third_party/libpng -Ithird_party/libpng -I../third_party/libwebp/src -I../third_party/tinyxml -I../third_party/pixman/pixman -I. -I../third_party/freetype2/include -I../third_party/harfbuzz/src -I../third_party/giflib/lib -I../third_party/jpeg -Ithird_party/cmark -I../third_party/curl/include -I../third_party/simpleini -I../third_party/. -I../third_party/fmt/include -O2 -g -DNDEBUG   -std=c++11 -MD -MT third_party/fmt/CMakeFiles/fmt.dir/src/format.cc.obj -MF third_party\fmt\CMakeFiles\fmt.dir\src\format.cc.obj.d -o third_party/fmt/CMakeFiles/fmt.dir/src/format.cc.obj -c ../third_party/fmt/src/format.cc
In file included from ../third_party/fmt/src/format.cc:8:0:
../third_party/fmt/include/fmt/format-inl.h: In function 'void fmt::v6::vprint(FILE*, fmt::v6::string_view, fmt::v6::format_args)':
../third_party/fmt/include/fmt/format-inl.h:1367:22: error: '_fileno' was not declared in this scope
   auto fd = _fileno(f);
                      ^
ninja: build stopped: subcommand failed.

and:

[1/1261] Building C object third_party/libarchive/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.obj
FAILED: third_party/libarchive/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.obj
C:\MinGW\bin\gcc.exe -DCMARK_STATIC_DEFINE -DHAVE_CONFIG_H -DLIBARCHIVE_STATIC -DNDEBUG -DPNG_NO_MMX_CODE -D__USE_MINGW_ANSI_STDIO -I…/third_party/libarchive/libarchive -Ithird_party/libarchive -I…/third_party/zlib -Ithird_party/zlib -I…/third_party/libpng -Ithird_party/libpng -I…/third_party/libwebp/src -I…/third_party/tinyxml -I…/third_party/pixman/pixman -I. -I…/third_party/freetype2/include -I…/third_party/harfbuzz/src -I…/third_party/giflib/lib -I…/third_party/jpeg -Ithird_party/cmark -I…/third_party/curl/include -I…/third_party/simpleini -I…/third_party/. -Wall -Wformat -Wformat-security -O2 -g -DNDEBUG -MD -MT third_party/libarchive/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.obj -MF third_party\libarchive\libarchive\CMakeFiles\archive_static.dir\archive_getdate.c.obj.d -o third_party/libarchive/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.obj -c …/third_party/libarchive/libarchive/archive_getdate.c
…/third_party/libarchive/libarchive/archive_getdate.c: In function ‘Convert’:
…/third_party/libarchive/libarchive/archive_getdate.c:705:2: error: unknown type name ‘errno_t’
errno_t terr;
^~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c:738:9: warning: implicit declaration of function ‘_localtime64_s’ [-Wimplicit-function-declaration]
terr = _localtime64_s(&tmbuf, &tmptime);
^~~~~~~~~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c: In function ‘DSTcorrect’:
…/third_party/libarchive/libarchive/archive_getdate.c:762:2: error: unknown type name ‘errno_t’
errno_t terr;
^~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c: In function ‘RelativeDate’:
…/third_party/libarchive/libarchive/archive_getdate.c:806:2: error: unknown type name ‘errno_t’
errno_t terr;
^~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c:815:9: warning: implicit declaration of function ‘_gmtime64_s’ [-Wimplicit-function-declaration]
terr = _gmtime64_s(&tmbuf, &tmptime);
^~~~~~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c: In function ‘RelativeMonth’:
…/third_party/libarchive/libarchive/archive_getdate.c:842:2: error: unknown type name ‘errno_t’
errno_t terr;
^~~~~~~
…/third_party/libarchive/libarchive/archive_getdate.c: In function ‘__archive_get_date’:
…/third_party/libarchive/libarchive/archive_getdate.c:997:2: error: unknown type name ‘errno_t’
errno_t terr;
^~~~~~~
[3/1261] Building C object third_party/libarchive/libarchive/CMakeFiles/archive_static.dir/archive_match.c.obj
ninja: build stopped: subcommand failed.

Hi there @Async_Char, we don’t support MinGW you have to compile with MSVC.

Hi, I removed the folder MinGW to try again, but another error ocurred, restaured my all OS and try again and then it finally works. Thank you very much.