Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000051KdenliveUser Interfacepublic2007-12-08 17:302008-10-23 00:22
ReporterEspinosa 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000051: make install broken
DescriptionMake kdenlive seems to be OK:

....
Linking CXX executable kdenlive
[ 98%] Built target kdenlive
[ 98%] Building C object renderer/CMakeFiles/kdenlive_renderer.dir/kdenlive_renderer.o
Linking C executable kdenlive_renderer
[ 98%] Built target kdenlive_renderer
[ 98%] Generating ca.gmo
[ 98%] Generating cs.gmo
[ 98%] Generating de.gmo
[ 98%] Generating fr.gmo
[ 98%] Generating hu.gmo
[ 98%] Generating it.gmo
[ 98%] Generating ja.gmo
[ 98%] Generating nl.gmo
[ 98%] Generating pt_BR.gmo
[ 98%] Generating pt.gmo
[ 98%] Generating tr.gmo
[100%] Built target translations

But when I do make install:

[espinosa@pavilon kdenlive]$ make install
[ 98%] Built target kdenlive
[ 98%] Built target kdenlive_renderer
[ 98%] Generating de.gmo
[ 98%] Generating pt_BR.gmo
[100%] Built target translations
Linking CXX executable CMakeFiles/CMakeRelink.dir/kdenlive
/usr/bin/ld: warning: libmlt.so.0.2.5, needed by /home/espinosa/build/kdenlive/lib/libmlt++.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libmiracle.so.0.2.5, needed by /home/espinosa/build/kdenlive/lib/libmlt++.so, not found (try using -rpath or -rpath-link)
CMakeFiles/kdenlive.dir/krender.o: In function `KRender::mltMoveTransition(QString, int, int, GenTime, GenTime, GenTime, GenTime)':
krender.cpp:(.text+0x24c): undefined reference to `mlt_service_get_producer'
krender.cpp:(.text+0x268): undefined reference to `mlt_properties_get'
krender.cpp:(.text+0x28a): undefined reference to `mlt_properties_get'
krender.cpp:(.text+0x359): undefined reference to `mlt_transition_get_b_track'
....
/home/espinosa/build/kdenlive/lib/libmlt++.so: undefined reference to `mlt_producer_close'
/home/espinosa/build/kdenlive/lib/libmlt++.so: undefined reference to `mlt_producer_set_in_and_out'
collect2: ld returned 1 exit status
make[2]: *** [kdenlive/CMakeFiles/CMakeRelink.dir/kdenlive] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/preinstall] Error 2
make: *** [preinstall] Error 2

What is
Linking CXX executable CMakeFiles/CMakeRelink.dir/kdenlive ????


Espinosa
Additional Information[espinosa@pavilon kdenlive]$ ../kdenlive_builder2 info
../kdenlive_builder2: line 143: cd: ffmpeg: No such file or directory
FFmpeg SVN version:
Revision: 1751
Last Changed Date: 2007-12-07 13:08:36 +0000 (Fri, 07 Dec 2007)
MLT SVN version:
Revision: 1043
Last Changed Date: 2007-12-08 08:51:09 +0000 (Sat, 08 Dec 2007)
MLT++ SVN version:
Revision: 1043
Last Changed Date: 2007-06-12 07:00:29 +0100 (Tue, 12 Jun 2007)
Kdenlive SVN version:
Revision: 1751
Last Changed Date: 2007-12-07 13:08:36 +0000 (Fri, 07 Dec 2007)
TagsNo tags attached.
Build/Install Method
Attached Files

- Relationships

-  Notes
(0000099)
Espinosa (reporter)
2007-12-09 20:24

I had deleted whole kdenlive source directory to prevent any interferences with previous build attempts, checked out latest svn version again but it gave me the same result.

Why is project linked again (?) during 'make install' phase, this phase should be dedicated to just copy files to destination? Something is wrong here.

More output:

[espinosa@pavilon kdenlive]$ cmake -P cmake_install.cmake
-- Install configuration: "debugfull"
-- Installing /home/espinosa/build/kdenlive/share/config.kcfg/kdenlive.kcfg
-- Installing /home/espinosa/build/kdenlive/share/apps/kdenlive/kdenliveui.rc
-- Installing /home/espinosa/build/kdenlive/share/apps/kdenlive/eventsrc
-- Installing /home/espinosa/build/kdenlive/share/applications/kde/eventsrc
-- Installing /home/espinosa/build/kdenlive/share/mimelnk/application/vnd.kde.kdenlive.desktop
-- Installing /home/espinosa/build/kdenlive/share/mimelnk/application/vnd.kde.kdenlive.scenelist.desktop
-- Installing /home/espinosa/build/kdenlive/share/applnk/Multimedia/kdenlive.desktop
CMake Error: Error in cmake code at
/home/espinosa/src/kdenlive/kdenlive/cmake_install.cmake:42:
FILE INSTALL cannot find file "/home/espinosa/src/kdenlive/kdenlive/CMakeFiles/CMakeRelink.dir/kdenlive" to install.
Current CMake stack:
[2] /home/espinosa/src/kdenlive/kdenlive/cmake_install.cmake
[1] /home/espinosa/src/kdenlive/cmake_install.cmake


Yes, /home/espinosa/src/kdenlive/kdenlive/CMakeFiles/CMakeRelink.dir/kdenlive is empty and kdenlive executable binary wasn't created (i cannot find it)
(0000100)
administrator (administrator)
2007-12-09 21:19

Should be fixed now, please test.

regards
(0000102)
Espinosa (reporter)
2007-12-09 22:37

I cracked it! We need to set LD_LIBRARY_PATH to mlt + ffmpeg locations if they are non standard (/usr/lib or /usr/local/lib). LD_RUN_PATH is not enough, besides it contains information for runtime not compile time, the path is relative to the *target* directory!.

CMake probably use LDD linking information from required libraries and ldd needs LD_LIBRARY_PATH to be set properly (in case of non-standart required lib dir).

This was not necessary for old Automake build i was somewhat happy just with LD_RUN_PATH.

For curious, I discovered it by:

[espinosa@pavilon kdenlive]$ ldd /home/espinosa/build/kdenlive/lib/libmlt++.so
        linux-gate.so.1 => (0xb7fbd000)
        libmlt.so.0.2.5 => not found
        libmiracle.so.0.2.5 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7ea1000)
        libm.so.6 => /lib/i686/libm.so.6 (0xb7e7c000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e70000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb7d43000)
        /lib/ld-linux.so.2 (0x80000000)


oops, library 'not found' ??
So ldd cannot see it. Hmm.
What if CMake use ldd as well?
OK, lets set LD_LIBRARY_PATH

[espinosa@pavilon kdenlive]$ export LD_LIBRARY_PATH=$DEST_DIR/lib
[espinosa@pavilon kdenlive]$ ldd /home/espinosa/build/kdenlive/lib/libmlt++.so
        linux-gate.so.1 => (0xb7fd4000)
        libmlt.so.0.2.5 => /home/espinosa/build/kdenlive/lib/libmlt.so.0.2.5 (0xb7f99000)
        libmiracle.so.0.2.5 => /home/espinosa/build/kdenlive/lib/libmiracle.so.0.2.5 (0xb7f8d000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e8d000)
        libm.so.6 => /lib/i686/libm.so.6 (0xb7e68000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e5c000)
        libc.so.6 => /lib/i686/libc.so.6 (0xb7d2f000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d2b000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb7d18000)
        libvalerie.so.0.2.5 => /home/espinosa/build/kdenlive/lib/libvalerie.so.0.2.5 (0xb7d0f000)
        /lib/ld-linux.so.2 (0x80000000)

That's better :)
And make install started to work
(0000103)
Espinosa (reporter)
2007-12-09 22:39

Administrator, please, mark this issue as solved.

- Issue History
Date Modified Username Field Change
2007-12-08 17:30 Espinosa New Issue
2007-12-09 20:24 Espinosa Note Added: 0000099
2007-12-09 21:19 administrator Note Added: 0000100
2007-12-09 22:37 Espinosa Note Added: 0000102
2007-12-09 22:39 Espinosa Note Added: 0000103
2007-12-09 22:43 administrator Status new => resolved
2007-12-09 22:43 administrator Resolution open => fixed
2008-10-23 00:22 madsdyd Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker