[MPlayer-dev-eng] configure issue

Fredrik Kuivinen freku045 at student.liu.se
Wed Mar 20 20:48:18 CET 2002


On Wed, Mar 20, 2002 at 08:16:19PM +0100, Alex Beregszaszi wrote:
> Hi,
> 
> > > i'm trying to install FAAD (with success, also 'make install' didn't copied
> > > faad.h to the includes dir). The package installed everything to /usr/local/.
> > > 
> > > (eof offtopic)
> > > 
> > > Finally i added a dummy function call to the configure test, to check
> > > if library is installed too (not only headers).
> > > 
> > > It works right, but, as it's placed to /usr/local/ and it isn't in my
> > > environment path, ldd returns with libfaad.so.0 => not found. (hmm, but gcc
> > > knows /usr/local, as it linked the binary)
> > > 
> > > Shouldn't we check ldd's output too? I mean ldd $file | grep 'not found',
> > > if returned string isn't empty we should write a message or only set
> > > configure test to no (disable) and/or add a configure switch for this.
> > > 
> > 
> > What about the -rpath option to ld? If we add "-rpath /usr/local/lib" in the
> > link stage the executable will search in /usr/local/lib even if /usr/local/lib
> > isn't in /etc/ld.so.conf or LD_LIBRARY_PATH. If we do this the ldd test won't
> > be necessary.
> 
> This isn't the question. The question is about running mplayer.
> If the libs which are linked with mplayer arent placed into the path (ld.so.conf)
> or into LD_LIBRARY_PAT, than mplayer will fail execution.
>

Yes this is exactly what I tried to say. I think that -rpath can be used in
this situation.



More information about the MPlayer-dev-eng mailing list