[Kdenlive-devel] Cmake install prefix ?!

g.marco at freenet.de g.marco at freenet.de
Wed Nov 14 09:09:46 UTC 2007


Hi

the last patch for the install prefixpath for locales and bin's is not what we 
need.

the locales where installed in a different dir, no matter where the real 
install goes to.

the bin's are installed in a wrong dir now (to $(PREFIX)/$(PREFIX). only for 
me ??)

i would check in the patch for a working cmake installation with the 
following:

Index: po/CMakeLists.txt
===================================================================
--- po/CMakeLists.txt   (Revision 1723)
+++ po/CMakeLists.txt   (Arbeitskopie)
@@ -1,5 +1,6 @@
-EXECUTE_PROCESS(COMMAND kde-config --install locale --expandvars
-                OUTPUT_VARIABLE KDE3_LOCALEDIR)
+#EXECUTE_PROCESS(COMMAND kde-config --install locale --expandvars
+#                OUTPUT_VARIABLE KDE3_LOCALEDIR)
+SET(KDE3_LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
 GETTEXT_CREATE_TRANSLATIONS(kdenlive.pot ALL
     ca.po
     cs.po
Index: kdenlive/CMakeLists.txt
===================================================================
--- kdenlive/CMakeLists.txt     (Revision 1723)
+++ kdenlive/CMakeLists.txt     (Arbeitskopie)
@@ -357,7 +357,7 @@
 ADD_EXECUTABLE(kdenlive ${SRC_FILES} ${SRC_MOC} ${SRC_UI} ${SRC_KCFG} )
 TARGET_LINK_LIBRARIES(kdenlive ${QT_LIBRARIES} kio kdeui mlt++ kdecore 
knewstuff kdeprint)

-INSTALL_TARGETS (${CMAKE_INSTALL_PREFIX}/bin kdenlive )
+INSTALL_TARGETS (/bin kdenlive )
 INSTALL (FILES kdenlive.kcfg DESTINATION share/config.cfg)
 INSTALL (FILES kdenliveui.rc eventsrc DESTINATION share/apps/kdenlive)
 INSTALL (FILES eventsrc DESTINATION share/applications/kde)
Index: renderer/CMakeLists.txt
===================================================================
--- renderer/CMakeLists.txt     (Revision 1723)
+++ renderer/CMakeLists.txt     (Arbeitskopie)
@@ -2,4 +2,4 @@

 ADD_EXECUTABLE(kdenlive_renderer ${RENDERER_SRC})
 TARGET_LINK_LIBRARIES(kdenlive_renderer mlt )
-INSTALL_TARGETS (${CMAKE_INSTALL_PREFIX}/bin kdenlive_renderer )
+INSTALL_TARGETS (/bin kdenlive_renderer )

this allows a installation to a complete different dir for building kdenlive.

or does this make any other problems ?

Marco




More information about the Kdenlive mailing list