https://bugs.kde.org/show_bug.cgi?id=400600
Bug ID: 400600 Summary: ext_zlib fails to build on Windows 10 Product: krita Version: git master Platform: MS Windows OS: MS Windows Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: billme...@gmail.com Target Milestone: --- I'm following the krita/3rdparty/README.md to build Krita on Windows 10. (I've installed cmake 3.8.2, mingw-w64 7.3.0, python 3.6.2, and the Windows 10 SDK.) Everything worked until I got an error with this command: "cmake --build . --config RelWithDebInfo --target ext_zlib" [ 33%] Performing build step for 'ext_zlib' [ 2%] Generating zlib1rc.obj 'C:\Program' is not recognized as an internal or external command, operable program or batch file. C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin\windres.exe: preprocessing failed. mingw32-make.exe[6]: *** [CMakeFiles\zlib.dir\build.make:61: zlib1rc.obj] Error 1 mingw32-make.exe[5]: *** [CMakeFiles\Makefile2:103: CMakeFiles/zlib.dir/all] Error 2 mingw32-make.exe[4]: *** [Makefile:140: all] Error 2 mingw32-make.exe[3]: *** [ext_zlib\CMakeFiles\ext_zlib.dir\build.make:113: ext_zlib/ext_zlib-prefix/src/ext_zlib-stamp/ext_zlib-build] Error 2 mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:416: ext_zlib/CMakeFiles/ext_zlib.dir/all] Error 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:428: ext_zlib/CMakeFiles/ext_zlib.dir/rule] Error 2 mingw32-make.exe: *** [Makefile:195: ext_zlib] Error 2 However, I can fix the issue by editing the file: C:\dev\b\ext_zlib\ext_zlib-prefix\src\ext_zlib-build\CMakeFiles\zlib.dir\build.make and changing the beginning of line 61 from "C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin\windres.exe" to C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\windres.exe -- You are receiving this mail because: You are watching all bug changes.