Linking to non-standard paths?

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?

I would add more paths into the Makefile or use symlinks rather then using the hack on sourceforge link building is pretty easy on linux with all the options you have.

I use the LD_LIBRARY_PATH trick with no problems. Type this on a terminal window to learn more about it.

man ld.so

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.