[Kdenlive-devel] Cmake install prefix ?!

Murat Senel muratasenel at gmail.com
Wed Nov 14 11:05:04 UTC 2007


Wednesday 14 November 2007 Tarihinde 11:09:46 yazmıştı:
> 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 locales files just went where they should go with the patch before.
But,

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

you are not alone. I have the same thing here.

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

Your patch worked for me for fixing the executable files installation. But I 
modified it like this:
Index: kdenlive/CMakeLists.txt
===================================================================
--- kdenlive/CMakeLists.txt	(revision 1723)
+++ kdenlive/CMakeLists.txt	(working copy)
@@ -357,8 +357,8 @@
 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 (FILES kdenlive.kcfg DESTINATION share/config.cfg)
+INSTALL_TARGETS (/bin kdenlive )
+INSTALL (FILES kdenlive.kcfg DESTINATION share/config.kcfg)
 INSTALL (FILES kdenliveui.rc eventsrc DESTINATION share/apps/kdenlive)
 INSTALL (FILES eventsrc DESTINATION share/applications/kde)
 INSTALL (FILES vnd.kde.kdenlive.desktop vnd.kde.kdenlive.scenelist.desktop 
DESTINATION share/mimelnk/application)
Index: renderer/CMakeLists.txt
===================================================================
--- renderer/CMakeLists.txt	(revision 1723)
+++ renderer/CMakeLists.txt	(working copy)
@@ -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 )


***
-INSTALL (FILES kdenlive.kcfg DESTINATION share/config.cfg)
+INSTALL (FILES kdenlive.kcfg DESTINATION share/config.kcfg)

I am not sure if this is correct for all of you but I think the default path 
should be $(KDE_PREFIX)/share/config.kcfg since I don't have config.cfg 
directory in my system




More information about the Kdenlive mailing list