[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
https://bugs.kde.org/show_bug.cgi?id=379427 Hannah von Reth changed: What|Removed |Added CC||[email protected] --- Comment #5 from Hannah von Reth --- Please remove mingw-w64 6.3 from your path. We only support the mings version installed by craft. -- You are receiving this mail because: You are watching all bug changes.
[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
https://bugs.kde.org/show_bug.cgi?id=379427 --- Comment #4 from [email protected] --- I am confused because the installer defaults to "C:\Program Files" and because many Unix programs support spaces in file names (note the linked article is a decade old). Also, I told the setup script to use the Microsoft C compiler. -- You are receiving this mail because: You are watching all bug changes.
[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
https://bugs.kde.org/show_bug.cgi?id=379427 --- Comment #3 from [email protected] --- Per the submission comment I was trying to use MSVCC - any idea why MinGW was pulled in? Any idea why MinGW compiles the exact same package successfully when installed in that location if MinGW is set explicitly? -- You are receiving this mail because: You are watching all bug changes.
[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
https://bugs.kde.org/show_bug.cgi?id=379427
Kevin Funk changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Kevin Funk ---
Upstream issue in zlib: From the root CMakeLists.txt:
```
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
COMMAND ${CMAKE_RC_COMPILER}
-D GCC_WINDRES
-I ${CMAKE_CURRENT_SOURCE_DIR}
-I ${CMAKE_CURRENT_BINARY_DIR}
-o ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
-i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
```
=> MinGW Makefiles code generated by CMake does not properly escape the path
containing spaces for CMAKE_RC_COMPILER, thus fails the compilation.
Fix: Don't install MinGW in a path containing spaces. It's as easy as that. The
MinGW project itself recommends against it, see e.g.:
http://stackoverflow.com/questions/5999507/mingw-make-cant-handle-spaces-in-path
--
You are receiving this mail because:
You are watching all bug changes.
[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
https://bugs.kde.org/show_bug.cgi?id=379427 --- Comment #1 from Kevin Funk --- Error: 2017-05-01 19:35:51,534 INFO FAILED: zlib1rc.obj 2017-05-01 19:35:51,534 INFO cmd.exe /C "cd /D R:\build\win32libs\zlib\work\msvc2015-RelWithDebInfo-1.2.8 && "C:\Program Files\mingw-w64\x86_64-6.3.0-win32-seh-rt_v5-rev1\mingw64\bin\windres.exe" -D GCC_WINDRES -I R:/build/win32libs/zlib/work/zlib-1.2.8 -I R:/build/win32libs/zlib/work/msvc2015-RelWithDebInfo-1.2.8 -o R:/build/win32libs/zlib/work/msvc2015-RelWithDebInfo-1.2.8/zlib1rc.obj -i R:/build/win32libs/zlib/work/zlib-1.2.8/win32/zlib1.rc" 2017-05-01 19:35:51,534 INFO 'C:\Program' is not recognized as an internal or external command, 2017-05-01 19:35:51,534 INFO 2017-05-01 19:35:51,534 INFO operable program or batch file. 2017-05-01 19:35:51,534 INFO 2017-05-01 19:35:51,534 INFO C:\Program Files\mingw-w64\x86_64-6.3.0-win32-seh-rt_v5-rev1\mingw64\bin\windres.exe: preprocessing failed. 2017-05-01 19:35:51,534 INFO -- You are receiving this mail because: You are watching all bug changes.
