Page 1 of 1

How to install VLC with UPnP support!!

Posted: 09 Sep 2005 10:56
by Paulala
How to install VLC with Upnp support in Unix system (eg. FC3)

Thank you.

Posted: 11 Sep 2005 13:55
by Rémi Denis-Courmont
DISCLAIMER: UPnP service discovery is heavily untested.

It depends on CyberLink C++ UPnP library available from :
http://sourceforge.net/project/showfile ... p_id=89768
with iconv compilation patch from :
http://jserv.sayya.org/upnp/clinkcc170- ... ation.diff

It requires libexpat-dev or whatever the package is called on your distribution.

Once you have CyberLink C++ UPnP, configure your VLC source with:
./configure ... --with-cyberlink-tree=<where you have compiled CyberLink>

Posted: 16 Dec 2005 18:53
by derdude
sounds good, but with entering make i'll get:

Code: Select all

g++ -Wsign-compare -Wsign-compare -Wall -pipe -o libupnp_plugin.so libupnp_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC ../XXX/Cyberlink170/lib/unix/libclink.a -lexpat -u vlc_entry__0_8_4 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: ../XXX/Cyberlink170/lib/unix/libclink.a(HTTPHeader.o): relocation R_X86_64_32 against `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' can not be used when making a shared object; recompile with -fPIC /XXX/Cyberlink170/lib/unix/libclink.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [libupnp_plugin.so] Error 1
my problem is that i dont know how exactly i have to compile the cyberlink stuff, or better: where to put the -fPIC thing...

thanks for any help!

Posted: 21 Dec 2005 19:38
by chenz
Hmm, I just configure CyberLink with "./configure --enable-expat", run make and thats it.
I never ran into the linking error you experience. You might want to check out the "--with-pic" switch for CyberLink's configure script...

Posted: 21 Dec 2005 19:54
by Rémi Denis-Courmont
I must say I never tried CyberLink on amd64. It might just not work - I don't know. It might also be a problem with vlc's configure script, but that sounds less likely to me.

Unfortunately, CyberLink is the only decent UPnP media server stack that I know of (Intel's libupnp does not seem to implement the media server model).

Update: How to install VLC with UPnP support!!

Posted: 29 Dec 2008 04:00
by Ingo
Hi community,

I was looking for the upnp support in VLC (only for linux) like this ones (you do not need to visit all URLs, they mainly ask for a solution):
viewtopic.php?f=2&t=46271&sid=6d404e81d ... 8cf3dce943
viewtopic.php?f=2&t=44080&sid=6d404e81d ... 8cf3dce943
viewtopic.php?f=13&t=27138&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=23396&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=28821&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=26008&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=25735&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=17678&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=17716&sid=6d404e81 ... 8cf3dce943
viewtopic.php?f=13&t=17683&sid=6d404e81 ... 8cf3dce943

and found this helpful topics (more interesting):
viewtopic.php?f=2&t=2570&sid=6d404e81dc ... 8cf3dce943
http://wiki.videolan.org/User:J-b#My_VLC
http://www.cybergarage.org/blog/2006/01 ... ectly.html
viewtopic.php?f=2&t=14400&sid=6d404e81d ... 8cf3dce943
viewtopic.php?f=2&t=46271&sid=6d404e81d ... 8cf3dce943

but finally THIS current topic give me the pointer to the solution but it's a little bit outdated. So I like to describe how I get it to run with current software versions

together with this information (important):
http://mailman.videolan.org/pipermail/v ... 21015.html
http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Get CyberLink C++ UPnP library Version 1.7.1 from :
http://sourceforge.net/project/showfile ... p_id=89768
The iconv compilation patch is no longer needed because it's part of this version.

I use gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) so I have to patch CyberLink with the
gcc-41.patch from http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Now just configure CyberLink with "./configure --enable-expat", run make and thats it for CyberLink (don't forget libexpat-dev or whatever the package is called on your distribution).

Once you have CyberLink C++ UPnP, configure your VLC source with:
./configure ... --enable-cyberlink --with-cyberlink-tree=<where/you/have/compiled/CyberLink>
and make.

Yes, OK - on heavy clicking the upnp tree in the playlist I get segfaults, but we know ...
With moderate use it works.


On topic Cyberlink doesn't compile on Mac OS X
viewtopic.php?f=12&t=53958&p=177018&sid ... 43#p177018
Cyberlink is broken. DOn't compile it.
Hi j-b,
maybe you read this. Is it only for Mac OS X broken?

Re: How to install VLC with UPnP support!!

Posted: 30 Dec 2008 17:27
by Jean-Baptiste Kempf
I read this. Upnp is broken, 1.0 should bring a new one.

Re: How to install VLC with UPnP support!!

Posted: 31 Dec 2008 00:24
by Ingo
We are only talking about VLC as upnp client, right?
It isn't broken.
On my computer it works.

Re: How to install VLC with UPnP support!!

Posted: 31 Dec 2008 15:33
by Jean-Baptiste Kempf
You are lucky :D

Re: How to install VLC with UPnP support!!

Posted: 08 Jan 2009 00:39
by Budgie
Hi community,
Many thanks to Ingo for excellent description of how to install UPnP plugin. All went well until I tried to configure Cyberlink and I received error messages that gcc couldn't be found. Checked my system and gcc is installed.

Being very new to Linux I guess it might be because I am working in my own directory but please forgive me for seeking some reassurance here before going further. Here is what I have done so far:-

I am using OpenSuse 11.0 and have been through the ten checks for multimedia posted on this forum. My system seems to comply.

I downloaded CyberLink C++ UPnP library Version 1.7.1 to my /home/user directory. VLC is in /usr/share/vlc. I assume I should have put the Cyberlink files in their own directory in /usr/share before trying to configure but is that all? If gcc is installed why is it not available from my user directory?

BTW if I use Dolphin rather than su and commands in a console window, how do I get root priviliges so I can move stuff to /usr/share etc. if indeed that is what I need to do?

All assistance gratefully received.
Budgie.

Re: How to install VLC with UPnP support!!

Posted: 16 Feb 2009 14:47
by halifax
Hi community,
Many thanks to Ingo for excellent description of how to install UPnP plugin. All went well until I tried to configure Cyberlink and I received error messages that gcc couldn't be found. Checked my system and gcc is installed.

Being very new to Linux I guess it might be because I am working in my own directory but please forgive me for seeking some reassurance here before going further. Here is what I have done so far:-

I am using OpenSuse 11.0 and have been through the ten checks for multimedia posted on this forum. My system seems to comply.

I downloaded CyberLink C++ UPnP library Version 1.7.1 to my /home/user directory. VLC is in /usr/share/vlc. I assume I should have put the Cyberlink files in their own directory in /usr/share before trying to configure but is that all? If gcc is installed why is it not available from my user directory?

BTW if I use Dolphin rather than su and commands in a console window, how do I get root priviliges so I can move stuff to /usr/share etc. if indeed that is what I need to do?

All assistance gratefully received.
Budgie.
Perhaps You 1.download recent vlc-sources from the Videolan-pages(google "vlc source code").
You check whether 2.You installed Your C++-compiler correctly? . . . AND got working source-code ?
Then it's just easy for USERs to COMPILE vlc correctly, but HOWTO setup und use that beast . . .
I'm eager to read Ingo's documentation as next.
cu
P.S. I use (K)ubuntu8.04, by default there is no g++-compiler installed . . .

Re: Update: How to install VLC with UPnP support!!

Posted: 26 Feb 2009 16:26
by halifax
Hallo Ingo,
ich versuche, mit dem gepatchten "CyberLink"-Paket einen vlc-client für Mediatomb zu kompilieren. "CyberLink" kompiliert zwar, aber bei ./configure im root-vlc erscheint folgendes:

----------------------------------------------------------------------------------------------------------------------------------------------
checking cybergarage/upnp/MediaServer.h usability... no
checking cybergarage/upnp/MediaServer.h presence... yes
configure: WARNING: cybergarage/upnp/MediaServer.h: present but cannot be compiled
configure: WARNING: cybergarage/upnp/MediaServer.h: check for missing prerequisite headers?
configure: WARNING: cybergarage/upnp/MediaServer.h: see the Autoconf documentation
configure: WARNING: cybergarage/upnp/MediaServer.h: section "Present But Cannot Be Compiled"
configure: WARNING: cybergarage/upnp/MediaServer.h: proceeding with the preprocessor's result
configure: WARNING: cybergarage/upnp/MediaServer.h: in the future, the compiler will take precedence
checking for cybergarage/upnp/MediaServer.h... yes
checking for libclink.a in /home/halifax/CyberLink/... /home/halifax/CyberLink/lib/unix/libclink.a
checking for XML parser to link CyberLink with... configure: error: cannot find XML parser for CyberLink
See `config.log' for more details.
-----------------------------------------------------------------------------------------------------------------------------------------------

Wo mag es den fehlenden "XML parser" geben ?
Unter cybergarage/upnp finde ich keine MediaServer.h header-Datei, unter /sample gibt's allerdings MediaGate.h . . .
Muß das CyberLink-Paket noch installiert werden ? (Selbst bei Ausführung als "root" ist "permission denied" . . .)
Ich hoffe, Du kannst mir einen Tip geben, die usability auf "Ja" umzuschalten.
Mit freundlichen Grüßen
halifax
Hi community,

I was looking for the upnp support in VLC (only for linux) like this ones (you do not need to visit all URLs, they mainly ask for a solution):
viewtopic.php?f=2&t=46271
viewtopic.php?f=2&t=44080
viewtopic.php?f=13&t=27138
viewtopic.php?f=13&t=23396
viewtopic.php?f=13&t=28821
viewtopic.php?f=13&t=26008
viewtopic.php?f=13&t=25735
viewtopic.php?f=13&t=17678
viewtopic.php?f=13&t=17716
viewtopic.php?f=13&t=17683

and found this helpful topics (more interesting):
viewtopic.php?f=2&t=2570
http://wiki.videolan.org/User:J-b#My_VLC
http://www.cybergarage.org/blog/2006/01 ... ectly.html
viewtopic.php?f=2&t=14400
viewtopic.php?f=2&t=46271

but finally THIS current topic give me the pointer to the solution but it's a little bit outdated. So I like to describe how I get it to run with current software versions

together with this information (important):
http://mailman.videolan.org/pipermail/v ... 21015.html
http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Get CyberLink C++ UPnP library Version 1.7.1 from :
http://sourceforge.net/project/showfile ... p_id=89768
The iconv compilation patch is no longer needed because it's part of this version.

I use gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) so I have to patch CyberLink with the
gcc-41.patch from http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Now just configure CyberLink with "./configure --enable-expat", run make and thats it for CyberLink (don't forget libexpat-dev or whatever the package is called on your distribution).

Once you have CyberLink C++ UPnP, configure your VLC source with:
./configure ... --enable-cyberlink --with-cyberlink-tree=<where/you/have/compiled/CyberLink>
and make.

Yes, OK - on heavy clicking the upnp tree in the playlist I get segfaults, but we know ...
With moderate use it works.


On topic Cyberlink doesn't compile on Mac OS X
viewtopic.php?f=12&t=53958&p=177018&sid ... 43#p177018
Cyberlink is broken. DOn't compile it.
Hi j-b,
maybe you read this. Is it only for Mac OS X broken?

Re: Update: How to install VLC with UPnP support!!

Posted: 02 Mar 2009 12:05
by halifax
Hallo Ingo,
vielen Dank für Deine private Nachricht ! Habe schon versucht, Dich privat zu erreichen, aber meine Mail an Dich bleibt UNGESENDET in der Outbox der Mail-Software des VideoLAN-Forums liegen. Wenn ich eine PM an mich selbst sende, klappt's allerdings. Ich hoffe, es klappt nun besser mit meiner Antwort-Mail. Sonst werde ich sie einfach im Forum posten - natürlich auf deutsch - , wie gehabt . . .
--- allerdings OHNE Zitat Deiner Mail (Datenschutz).
Könntest Du mir die Debian-Dist nennen, die Du probiert hast ( . . . habe ich seit langem nicht mehr probiert, zuletzt, glaube ich, 3.0). Ich benutze derzeit Kubuntu 8.04 und (K)ubuntu 8.10 mit Gnome, da KDE4 doch noch sehr unfertig ist.
Grüße
Manfred, äh halifax
Hallo Ingo,
ich versuche, mit dem gepatchten "CyberLink"-Paket einen vlc-client für Mediatomb zu kompilieren. "CyberLink" kompiliert zwar, aber bei ./configure im root-vlc erscheint folgendes:

----------------------------------------------------------------------------------------------------------------------------------------------
checking cybergarage/upnp/MediaServer.h usability... no
checking cybergarage/upnp/MediaServer.h presence... yes
configure: WARNING: cybergarage/upnp/MediaServer.h: present but cannot be compiled
configure: WARNING: cybergarage/upnp/MediaServer.h: check for missing prerequisite headers?
configure: WARNING: cybergarage/upnp/MediaServer.h: see the Autoconf documentation
configure: WARNING: cybergarage/upnp/MediaServer.h: section "Present But Cannot Be Compiled"
configure: WARNING: cybergarage/upnp/MediaServer.h: proceeding with the preprocessor's result
configure: WARNING: cybergarage/upnp/MediaServer.h: in the future, the compiler will take precedence
checking for cybergarage/upnp/MediaServer.h... yes
checking for libclink.a in /home/halifax/CyberLink/... /home/halifax/CyberLink/lib/unix/libclink.a
checking for XML parser to link CyberLink with... configure: error: cannot find XML parser for CyberLink
See `config.log' for more details.
-----------------------------------------------------------------------------------------------------------------------------------------------

Wo mag es den fehlenden "XML parser" geben ?
Unter cybergarage/upnp finde ich keine MediaServer.h header-Datei, unter /sample gibt's allerdings MediaGate.h . . .
Muß das CyberLink-Paket noch installiert werden ? (Selbst bei Ausführung als "root" ist "permission denied" . . .)
Ich hoffe, Du kannst mir einen Tip geben, die usability auf "Ja" umzuschalten.
Mit freundlichen Grüßen
halifax
Hi community,

I was looking for the upnp support in VLC (only for linux) like this ones (you do not need to visit all URLs, they mainly ask for a solution):
viewtopic.php?f=2&t=46271
viewtopic.php?f=2&t=44080
viewtopic.php?f=13&t=27138
viewtopic.php?f=13&t=23396
viewtopic.php?f=13&t=28821
viewtopic.php?f=13&t=26008
viewtopic.php?f=13&t=25735
viewtopic.php?f=13&t=17678
viewtopic.php?f=13&t=17716
viewtopic.php?f=13&t=17683

and found this helpful topics (more interesting):
viewtopic.php?f=2&t=2570
http://wiki.videolan.org/User:J-b#My_VLC
http://www.cybergarage.org/blog/2006/01 ... ectly.html
viewtopic.php?f=2&t=14400
viewtopic.php?f=2&t=46271

but finally THIS current topic give me the pointer to the solution but it's a little bit outdated. So I like to describe how I get it to run with current software versions

together with this information (important):
http://mailman.videolan.org/pipermail/v ... 21015.html
http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Get CyberLink C++ UPnP library Version 1.7.1 from :
http://sourceforge.net/project/showfile ... p_id=89768
The iconv compilation patch is no longer needed because it's part of this version.

I use gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) so I have to patch CyberLink with the
gcc-41.patch from http://www.peerweb.nl/gentoo/net-misc/clinkcc/files/

Now just configure CyberLink with "./configure --enable-expat", run make and thats it for CyberLink (don't forget libexpat-dev or whatever the package is called on your distribution).

Once you have CyberLink C++ UPnP, configure your VLC source with:
./configure ... --enable-cyberlink --with-cyberlink-tree=<where/you/have/compiled/CyberLink>
and make.

Yes, OK - on heavy clicking the upnp tree in the playlist I get segfaults, but we know ...
With moderate use it works.


On topic Cyberlink doesn't compile on Mac OS X
viewtopic.php?f=12&t=53958&p=177018&sid ... 43#p177018
Cyberlink is broken. DOn't compile it.
Hi j-b,
maybe you read this. Is it only for Mac OS X broken?