Building static vlc

*nix specific usage questions
vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Building static vlc

Postby vinifr » 08 May 2014 21:46

I have build static libs fdk-aac, FFmpeg, x264, live555. I'm using Ubuntu 13.10.

But VLC building fail if I try:

Code: Select all

CPPFLAGS="-I/root/vlc/vlc_build/vlcdeps/usr/include" LDFLAGS="-L/root/vlc/vlc_build/vlcdeps/usr/lib" PKG_CONFIG_PATH="/root/vlc/vlc_build/vlcdeps/usr/lib/pkgconfig" # ./configure --enable-static # make
Error:

Code: Select all

CC access/zip/unzip/unzip.lo CC access/zip/unzip/ioapi.lo CCLD libunzip.la CCLD libzip_plugin.la /usr/bin/ld: ./.libs/libunzip.a(unzip.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC ./.libs/libunzip.a(unzip.o): error adding symbols: Bad value
I need a static VLC.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Building static vlc

Postby Rémi Denis-Courmont » 08 May 2014 22:41

The current module loader does not support statically linked modules.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Re: Building static vlc

Postby vinifr » 09 May 2014 02:48

Is there any way around this and build a 100% static VLC for Linux?

For Windows works: http://projectsymphony.blogspot.com.br/ ... ux-to.html, I dont undertand why.

thanks for your help.
Last edited by vinifr on 09 May 2014 14:27, edited 1 time in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Building static vlc

Postby Rémi Denis-Courmont » 09 May 2014 08:40

You will have to change the build system and plugin loader. This is not going to work out of the box.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Re: Building static vlc

Postby vinifr » 09 May 2014 14:28

ok, thanks for your reply.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests