Trouble Building Blender 2.55 w/ FFMPEG (OSX)

Hey everyone,

I’ve been building blender from SVN for a little while now but quite recently have been experiencing problems building blender with FFMPEG enabled. I am using scons to build and have set up the user-config file in the root directory as normal. Though when I build i get this error in the terminal:


scons: Building targets ...
Compiling ==> 'AUD_Buffer.cpp'
Compiling ==> 'AUD_BufferReader.cpp'
Compiling ==> 'AUD_C-API.cpp'
Compiling ==> 'AUD_ChannelMapperFactory.cpp'
Compiling ==> 'AUD_ChannelMapperReader.cpp'
intern/audaspace/intern/AUD_ChannelMapperReader.cpp: In member function ‘virtual void AUD_ChannelMapperReader::read(int&, sample_t*&)’:
intern/audaspace/intern/AUD_ChannelMapperReader.cpp:79: warning: comparison between signed and unsigned integer expressions
Compiling ==> 'AUD_ConverterFactory.cpp'
intern/audaspace/intern/AUD_C-API.cpp:81:34: error: libavformat/avformat.h: No such file or directory
Compiling ==> 'AUD_ConverterFunctions.cpp'
intern/audaspace/intern/AUD_C-API.cpp: In function ‘void AUD_initOnce()’:
intern/audaspace/intern/AUD_C-API.cpp:104: error: ‘av_register_all’ was not declared in this scope
scons: *** [/Users/GCWilkinson/BlenderSVN/BFTrunk/build/darwin/intern/audaspace/intern/AUD_C-API.o] Error 1
scons: building terminated because of errors.

I don’t know whether this is a problem with my setup, how I’m building, or something else entirely so any help would be greatly appreciated.

Thanks in advance,

Yep seen that one a few times on Linux. :slight_smile:

It’s your build set up. Probably out of date FFMPEG on your system.

If it’s anything like Linux, getting latest FFMPEG breaks other apps, so I build a local FFMPEG and point Blender to build using that.

Try getting latest svn FFMPEG, building that to /usr/local or whatever you put it on a Mac. :slight_smile:

Then specify that path in Blenders scons script.

I’ve tried both updating and reinstalling ffmpeg via macports to no avail. Though I do thank you for help. I do agree it most likely is my build setup and probably is my install of ffmpeg.

I find it kind of weird that it just broke though because I haven’t updated it or even touched it until your suggestion and I’ve had no problems with it till a few days ago.

(edit): I’m using Mac OSX 10.6.4 if that helps.

After much experimentation I have managed to solve my problems with building blender with ffmpeg and I’d like to thank those individuals here and on the IRC for their help.