[vlc-devel] [PATCH] Fix live555media libraries link order

Rafaël Carré rafael.carre at gmail.com
Sat Nov 21 00:02:20 CET 2009

Le Fri, 20 Nov 2009 16:49:42 -0500,
Brad <brad at comstyle.com> a écrit :

> On Friday 20 November 2009 09:55:59 Rémi Duraffort wrote:
> > > Since at least vlc 1.0.2, compiling vlc with a static version of a
> > > recent version of the live555media library (the version released
> > > on 2009/11/12 for instance) results in the following warning
> > > while loading the liblive555_plugin.so module:
> >
> > Ping ? someone to comment on this patch ?
> Regarding live555 and VLC...
> I'm in the process of upgrading VLC for the OS I use and there are a
> few rough edges with VLC. One of them is the live555 support. At the
> moment I don't see how this even builds as VLC is trying to link an
> archive to a shared object which cannot be done with libtool. So no
> surprise the live555 plugin does not build.

It builds fine here without the patch (2008.07.25 version)

What makes you think linking can't be done with libtool ?

Extract from compilation:

libtool: link: g++ -shared
-nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o  .libs/liblive555_plugin_la-live555.o .libs/liblive555_plugin_la-asf.o .libs/liblive555_plugin_la-buffer.o
-Wl,--whole-archive ../../compat/.libs/libcompat.a
-Wl,--no-whole-archive  -Wl,-rpath -Wl,/home/fun/vlc/src/.libs
-Wl,-rpath -Wl,/home/fun/.local/vlc/lib -lpthread -lliveMedia_pic
-lgroupsock_pic -lBasicUsageEnvironment_pic
-lUsageEnvironment_pic ../../src/.libs/libvlccore.so
-L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../..
-L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc
-lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o
-mtune=athlon64   -Wl,-soname -Wl,liblive555_plugin.so
-o .libs/liblive555_plugin.so

Perhaps libtool just doesn't work on your mysterious OS

Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091121/cbb30cd8/attachment.sig>

More information about the vlc-devel mailing list