Linking to non-standard paths?


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:

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

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

~ $ ldd local-mlt++/lib/ =>  (0x00007fffa53fe000) => /usr/lib/ (0x00007f599cf07000) => /usr/lib/ (0x00007f599ccf9000) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/ (0x00007f599c9f5000) => /lib/ (0x00007f599c774000) => /lib/ (0x00007f599c566000) => /lib/ (0x00007f599c226000) => /lib/ (0x00007f599c022000) => /lib/ (0x00007f599be07000) => /usr/lib/ (0x00007f599bbfb000)
        /lib64/ (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.


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.