[kde-windows] [Bug 379427] 'C:\Program' not recognized as internal or external command in compilation of zlib.
Kevin Funk
bugzilla_noreply at kde.org
Tue May 2 23:28:57 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=379427
Kevin Funk <kfunk at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Kevin Funk <kfunk at kde.org> ---
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 the assignee for the bug.
More information about the Kde-windows
mailing list