[Bf-committers] scons issues with new ffmpeg package
Ken Hughes
khughes at pacific.edu
Fri Sep 28 01:16:53 CEST 2007
Mathias Wein wrote:
> Ken Hughes wrote:
>
>> I was able to get it scons to compile ffmpeg by locally setting
>> env['CCFLAGS'] to an empty string before calling env.BlenderLib() and
>> restoring afterward.
>>
>>
>>
> Hm...it seems blender's custom build environment functions circumvents it
> by creating a copy in BlenderLib(), but normally "temporary" changes to
> environments don't have any effect, all scripts are passed and after that,
> all targets get built with the environment how it was setup at the end
> of parsing.
>
> You might want to do something like:
> ff_env = env.Copy();
> ff_env.Replace(CCFLAGS = ...)
> ff_env.BlenderLib(...)
> to stick to the usual SCons conventions IMHO...
>
That's a better approach. Since the debug flags also affect it, I also
did ff_env.Replace(BF_DEBUG_FLAGS= ...) also.
A patch is here, if anyone is interested.
http://www1.pacific.edu/~khughes/blender/ffmpeg-patch
<http://www1.pacific.edu/%7Ekhughes/blender/ffmpeg-patch>
Ken
More information about the Bf-committers
mailing list