installing KDE4 on Windows

Alexander Neundorf neundorf at kde.org
Tue Nov 13 19:05:41 GMT 2007


Hi,

once again this nice topic ;-)
I see two open issues:

1) What about the proposed LIB_INSTALL_DIR hack ?

IF(WIN32)
   SET(LIB_INSTALL_DIR  ${LIB_INSTALL_DIR}
                     RUNTIME DESTINATION ${BIN_INSTALL_DIR}
                     ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
                     LIBRARY DESTINATION ${LIB_INSTALL_DIR}

ENDIF(WIN32)

Does it work ?
Objections against committing this ?


2) Install locations in general: under UNIX it is possible to specify separate 
locations for every "component": LIB_INSTALL_DIR, BIN_INSTALL_DIR, 
INCLUDE_INSTALL_DIR, SHARE_INSTALL_PREFIX etc. They don't need to be 
installed under a common prefix on UNIX.
What about Windows ?
It seems under Windows everything *has* to be installed under the same 
prefix ?
At least kdelibs/CMakeLists.txt contains that ugly hack at the end which set 
the various variables for the install locations for the 
KDE4LibDependencies.cmake file to locations below a common KDE4_INSTALL_DIR. 
This *completely* ignores the values to which these install variables have 
actually been set, IOW it is broken and can't stay that way.
I see two options:
a) install everything under a common prefix (under Windows)
   then this code becomes cleaner, but it won't be possible anymore to specify
   e.g. SHARE_INSTALL_PREFIX which is outside CMAKE_INSTALL_PREFIX
b) modify the Windows installer so that it can copy with the
   KDE4LibsDependencies.cmake file as it is created (using the same code 
   as for UNIX)

Alex




More information about the kde-core-devel mailing list