This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Linking to non-standard paths?

Tags: None
(comma "," separated)
rubikcube
Registered Member
Posts
7
Karma
0

Linking to non-standard paths?

Tue Feb 10, 2009 11:47 am

Hi,


how can I install mlt, mlt++ and kdenlive to some non-standard prefix while keeping the normal installation in /usr/local/ intact? I installed mlt into ${HOME}/local-mlt/ and am now trying the same with mlt++ using the following lines in a small installer script:


PKG_CONFIG_PATH="${HOME}/local-mlt/lib/pkgconfig":${PKG_CONFIG_PATH}

./configure --prefix=${HOME}/local-mlt++/ && make && make install


It seems to work fine, but ldd on the mlt++-libs shows:


~ $ ldd local-mlt++/lib/libmlt++.so

        linux-vdso.so.1 =>  (0x00007fffa53fe000)

        libmlt.so.1 => /usr/lib/libmlt.so.1 (0x00007f599cf07000)

        libmiracle.so.1 => /usr/lib/libmiracle.so.1 (0x00007f599ccf9000)

        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libstdc++.so.6 (0x00007f599c9f5000)

        libm.so.6 => /lib/libm.so.6 (0x00007f599c774000)

        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f599c566000)

        libc.so.6 => /lib/libc.so.6 (0x00007f599c226000)

        libdl.so.2 => /lib/libdl.so.2 (0x00007f599c022000)

        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f599be07000)

        libvalerie.so.1 => /usr/lib/libvalerie.so.1 (0x00007f599bbfb000)

        /lib64/ld-linux-x86-64.so.2 (0x00007f599d383000)


So obviously mlt++ looks only into the standard paths for the mlt libraries. Am I missing something or should I hack into the Makefiles to pass an rpath option to the linker?

rubikcube
Registered Member
Posts
7
Karma
0

Re: Linking to non-standard paths?

Tue Feb 10, 2009 12:14 pm

Edit:


See https://sourceforge.net/tracker2/?func=detail&aid=2584884&group_id=96039&atid=613416 for a quick hack that worked for me.

tidris
Registered Member
Posts
90
Karma
0
OS

Re: Linking to non-standard paths?

Mon Dec 14, 2009 8:04 am
I use the LD_LIBRARY_PATH trick with no problems. Type this on a terminal window to learn more about it.

man ld.so

ddennedy
Registered Member
Posts
1315
Karma
1

Re: Linking to non-standard paths?

Thu Dec 24, 2009 8:00 pm
In the top level of your MLT source directory view the setenv script for other MLT evironment variables that tell it where to lookup plugins and data files.




Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed, Sogou [Bot]