[Bf-committers] GSOC audio system cleanup branch linking issue @ 1190664402

Ken Hughes khughes at pacific.edu
Tue Sep 25 03:45:16 CEST 2007


I got the same error when the linker was looking at my old ffmpeg libraries.

Ken

Stephen Swaney wrote:
> On Mon, Sep 24, 2007 at 10:09:10PM +0200, Johan Meskens CS3 jmcs3 wrote:
>   
>>  Intrah onat Diria .. Sun, 23 Sep 2007 18:07:11 -0400
>>   , Stephen Swaney  wrote  "Noalim y": 
>>
>>
>>     
>>> On Sun, Sep 23, 2007 at 10:47:27PM +0200, Csaba Hruska wrote:
>>>       
>>>> Hi,
>>>>
>>>> I have a problem probably with scons build script.
>>>> For me the compilation works fine and also linking. But many other people
>>>> said that they have linking problem with ffmpeg.
>>>>         
>>> There was an update to blender's included ffmpeg today to
>>> the current ffmpeg version.  if ffmpeg can be said to have versions!
>>>
>>> For me with scons, the easiest thing was to install the current
>>> svn version of ffmpeg into /usr/local (the default),
>>> set my BF_FFMPEG dir in user-config.py to /usr/local
>>> and add swscale to the BF_FFMPEG_LIB
>>>       
>> ok i did just that
>> but get the following error:
>>
>> Compiling ==> 'buildinfo.c'
>> Linking program ==> 'blender'
>> /home/interlichtspielhaus/build/linux2/lib/libbf_blenkernel.a(writeffmpeg.o): In function `write_audio_frames':
>> writeffmpeg.c:(.text+0x16b): undefined reference to `av_init_packet'
>> /home/interlichtspielhaus/build/linux2/lib/libbf_blenkernel.a(writeffmpeg.o): In function `append_ffmpeg':
>> writeffmpeg.c:(.text+0x141d): undefined reference to `av_init_packet'
>> collect2: ld returned 1 exit status
>> scons: *** [/home/interlichtspielhaus/build/linux2/bin/blender] Error 1
>> scons: building terminated because of errors.
>>     
>
> The symbol av_init_packet lives in libavformat.
> You should have something like this in your config file:
>
> BF_FFMPEG_LIB = 'avformat avcodec avutil swscale'
>
>
>   



More information about the Bf-committers mailing list