Page 1 of 1

Building static vlc

Posted: 08 May 2014 21:46
by vinifr
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.

Re: Building static vlc

Posted: 08 May 2014 22:41
by Rémi Denis-Courmont
The current module loader does not support statically linked modules.

Re: Building static vlc

Posted: 09 May 2014 02:48
by vinifr
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.

Re: Building static vlc

Posted: 09 May 2014 08:40
by Rémi Denis-Courmont
You will have to change the build system and plugin loader. This is not going to work out of the box.

Re: Building static vlc

Posted: 09 May 2014 14:28
by vinifr
ok, thanks for your reply.