[x264-devel] x264 - compiles gpac static or dynamic?

E R ears.box at gmail.com
Wed Nov 26 09:06:46 CET 2014


I'm not a coder, but if I'm not mistaken it looks like x264 is looking
for a static build of gpac?

arg=${arg/pthreadGC/pthreadVC}
        [ "$arg" = avifil32.lib ] && arg=vfw32.lib
        [ "$arg" = gpac_static.lib ] && arg=libgpac_static.lib


gpac=auto

if [ "$gpac" = "auto" -a "$lsmash" != "yes" ] ; then
    gpac="no"
    GPAC_LIBS="-lgpac_static"
    cc_check "" -lz && GPAC_LIBS="$GPAC_LIBS -lz"
    if [ "$SYS" = "WINDOWS" ] ; then
        cc_check "" -lws2_32 && GPAC_LIBS="$GPAC_LIBS -lws2_32"
        cc_check "" -lwinmm && GPAC_LIBS="$GPAC_LIBS -lwinmm"
    fi
    if cc_check gpac/isomedia.h "$GPAC_LIBS" ; then
        if cc_check gpac/isomedia.h "$GPAC_LIBS"
"gf_isom_set_pixel_aspect_ratio(0,0,0,0,0);" ; then
            gpac="yes"
        else
            echo "Warning: gpac is too old, update to 2007-06-21 UTC or later"
        fi
    fi
fi

On Tue, Nov 25, 2014 at 7:45 PM, Sérgio Basto <sergio at serjux.com> wrote:
> On Ter, 2014-11-25 at 13:56 -1000, E R wrote:
>> These are my configure options I used;
>>
>>
>> # wxwidgets support
>> if [ "${WX_SUPPORT:-no}" = "no" ]; then
>>   wx_option="--disable-wx"
>> else
>>   wx_option="--enable-wx"
>> fi
>>
>> ./configure --prefix=/usr \
>>   --mandir=/usr/man \
>>   --disable-opt \
>>   --cpu=${ARCH} \
>>   --extra-cflags="$SLKCFLAGS" \
>>   --disable-ipv6 \
>>   $wx_option
>>
>>
>> Gpac has the option below, but I did not use this;
>>
>> --enable-static-bin   <GPAC static build>
>>
>>
>> So If I'm not enabling a static build I'm assuming it has to be
>> dynamically linked, what else could it be?
>
> see configure file in x264 dir
>
> gpac="auto"
>
> --disable-gpac)
>     gpac="no"
>
> cc_check "" -lz && GPAC_LIBS="-lgpac_static -lz" ||
> GPAC_LIBS="-lgpac_static"
>
> just could be auto (detect) or no , if detected use static !
>
> no way to regenerate configure ?
>
>> On Tue, Nov 25, 2014 at 1:49 PM, Sérgio Basto <sergio at serjux.com> wrote:
>> > static
>> >
>> > On Ter, 2014-11-25 at 13:30 -1000, E R wrote:
>> >> HI All,
>> >>
>> >>
>> >> x264 has the configure option; --enable-static which I did not use, so
>> >> I'm assuming without it, it's all a dynamic build?
>> >
>> > Verifying the rpmfusion package , we need as a build required:
>> > gpac-devel-static, because compile it with static lib,  if no option is
>> > given .
>> >
>> >> I'm trying to figure out if x264 uses a static or dynamic version of gpac?
>> >
>> > That is a good question , if you could build dynamic version , let me
>> > know . This x264 is one exception on Fedora / rpmfusion , because we
>> > build everything dynamically . I wonder why not x264 with gpac, should
>> > have a reason ...
>> >
>> >> thanks
>> >> _______________________________________________
>> >> x264-devel mailing list
>> >> x264-devel at videolan.org
>> >> https://mailman.videolan.org/listinfo/x264-devel
>> >
>> > --
>> > Sérgio M. B.
>> >
>> > _______________________________________________
>> > x264-devel mailing list
>> > x264-devel at videolan.org
>> > https://mailman.videolan.org/listinfo/x264-devel
>> _______________________________________________
>> x264-devel mailing list
>> x264-devel at videolan.org
>> https://mailman.videolan.org/listinfo/x264-devel
>
> --
> Sérgio M. B.
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> https://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list