[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VLC compile problem



Lorenzo Milesi <lorenzo.milesi@gmail.com> writes:

> Just a quick help. I'm trying to compile VLC from source, taken from
> www.videolan.org.
> I've installed libavcodec and liba52 from debian repository
> Then I get this error message, when launching 'make'
>
> gcc -Wsign-compare -Wall -pipe -o liba52tofloat32_plugin.so
> liba52tofloat32_plugin_a-a52tofloat32.o `top_builddir=../../..
> ../../../vlc-config --libs plugin a52tofloat32`
> /usr/bin/ld: /usr/local/lib/liba52.a(parse.o): relocation R_X86_64_32S
> can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib/liba52.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> is it a problem of vlc or of liba52?
>
> thanks
> maxxer

You can't link a static lib into a dynamic one, that won't work.

So either build a static lib or use a -fPIC compiled liba52.a (normaly
in liba52-pic.deb if at all).

MfG
        Goswin



Reply to: