[Bf-committers] Final FFMPEG compatibility fix (hopefully)

Peter Schlaile peter at schlaile.de
Sat May 28 16:18:32 CEST 2011


Hi,

please try again with latest SVN.

Cheers,
Peter

> I am maintaining daily builds of blender for Ubuntu in a PPA at Launchpad.
> Sorry to be the odd man out here, but I still have problems building
> blender on Ubuntu Oneiric, which uses libav 0.7~beta2 according to the
> package overview in Launchpad [1].
>
> libavcodec/version.h states:
>
> #define LIBAVCODEC_VERSION_MAJOR 53
> #define LIBAVCODEC_VERSION_MINOR  3
> #define LIBAVCODEC_VERSION_MICRO  0
>
> The builds fail with following error message:
>
> /build/buildd/blender-2.57.1+svn36973~oneiric1/source/blender/blenkernel/intern/writeffmpeg.c:
> In function 'ffmpeg_property_add':
> /build/buildd/blender-2.57.1+svn36973~oneiric1/source/blender/blenkernel/intern/writeffmpeg.c:1056:9:
> error: incompatible types when assigning to type 'int' from type
> 'const union <anonymous>'
> /build/buildd/blender-2.57.1+svn36973~oneiric1/source/blender/blenkernel/intern/writeffmpeg.c:1061:9:
> error: incompatible types when assigning to type 'float' from type
> 'const union <anonymous>'
>
> You can see a full buildlog at [2].
>
> Cheers,
> Ralf
>
> [1] http://packages.ubuntu.com/oneiric/ffmpeg
> [2] https://launchpadlibrarian.net/72565355/buildlog_ubuntu-oneiric-amd64.blender_2.57.1%2Bsvn36973~oneiric1_FAILEDTOBUILD.txt.gz
>
> 2011/5/28 Dalai Felinto <dfelinto at gmail.com>:
>> Thanks Peter, it all working now (windows 32 and 64).
>>
>> 2011/5/27 Peter Schlaile <peter at schlaile.de>
>>
>>> Hi,
>>>
>>> just have commited the final compatibility fix for ffmpeg using a seperate
>>> header file that handles all the version cruft. (located in
>>> intern/ffmpeg/ffmpeg_compat.h )
>>>
>>> What makes it very nice: you can now write your code using the latest
>>> API version of ffmpeg GIT and can still be sure, that it will compile on
>>> older versions. (without those nasty #ifdefs all over the place.)
>>>
>>> You still have to check though, when you use interface functions, that
>>> where *not* used within the rest of the code and add compatibility macros
>>> to ffmpeg_compat.h appropriately.
>>>
>>> I hope, build doesn't break anymore.
>>>
>>> If it doesn't work out, please send me an email. (And: if you do
>>> so, tell me the exact ffmpeg version you are using, otherwise, I can't
>>> check!)
>>>
>>> Cheers,
>>> Peter
>>>
>>> P.S.: Sorry for the inconvenience, should have solved that the first time
>>> ? ? ? this way.
>>>
>>> ----
>>> Peter Schlaile
>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
>


More information about the Bf-committers mailing list