[Bf-committers] linux compile error

Sergey I. Sharybin g.ulairi at gmail.com
Wed Sep 21 17:10:51 CEST 2011


Hi,

Most probably you're using old FFmpeg library. We need version 0.7.3 or 
0.8.2 at least.

Here's instrunctions how FFmpeg can be easily used: 
http://wiki.blender.org/index.php/User:Nazg-gul/FFmpegUpdate

INTERLICHTSPIELHAUS wrote:
> hi
>
>
> i am having an ffmpeg related compile error again on ubuntu
>
>
> Compiling ==>  'AUD_FileFactory.cpp'
> In file included from intern/audaspace/intern/AUD_FileFactory.cpp:37:0:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.h:89:2: error: ‘AVIOContext’
> does not name a type
> Compiling ==>  'AUD_FFMPEGWriter.cpp'
> Compiling ==>  'AUD_FFMPEGFactory.cpp'
> Compiling ==>  'AUD_FFMPEGReader.cpp'
> scons: *** [/home/interlichtspielhaus/build/linux/intern/audaspace/intern/AUD_FileFactory.o]
> Error 1
> In file included from intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp:43:0:
> intern/ffmpeg/ffmpeg_compat.h: In function ‘int64_t
> av_get_pts_from_frame(AVFormatContext*, AVFrame*)’:
> intern/ffmpeg/ffmpeg_compat.h:137:25: error: ‘struct AVFrame’ has no
> member named ‘pkt_pts’
> intern/ffmpeg/ffmpeg_compat.h:139:1: warning: comparison between
> signed and unsigned integer expressions
> intern/ffmpeg/ffmpeg_compat.h:140:18: error: ‘struct AVFrame’ has no
> member named ‘pkt_dts’
> intern/ffmpeg/ffmpeg_compat.h:142:1: warning: comparison between
> signed and unsigned integer expressions
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp: In constructor
> ‘AUD_FFMPEGWriter::AUD_FFMPEGWriter(std::string, AUD_DeviceSpecs,
> AUD_Container, AUD_Codec, unsigned int)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp:60:89: error:
> ‘avformat_alloc_output_context2’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp:188:44: error:
> ‘avformat_write_header’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp: In member function ‘void
> AUD_FFMPEGWriter::encode(sample_t*)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp:254:1: warning:
> comparison between signed and unsigned integer expressions
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp: In member function
> ‘virtual void AUD_FFMPEGWriter::write(unsigned int, sample_t*)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGWriter.cpp:294:99: warning:
> comparison between signed and unsigned integer expressions
> scons: *** [/home/interlichtspielhaus/build/linux/intern/audaspace/ffmpeg/AUD_FFMPEGWriter.o]
> Error 1
> In file included from intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:37:0:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.h:89:2: error: ‘AVIOContext’
> does not name a type
> In file included from intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:43:0:
> intern/ffmpeg/ffmpeg_compat.h: In function ‘int64_t
> av_get_pts_from_frame(AVFormatContext*, AVFrame*)’:
> intern/ffmpeg/ffmpeg_compat.h:137:25: error: ‘struct AVFrame’ has no
> member named ‘pkt_pts’
> intern/ffmpeg/ffmpeg_compat.h:139:1: warning: comparison between
> signed and unsigned integer expressions
> intern/ffmpeg/ffmpeg_compat.h:140:18: error: ‘struct AVFrame’ has no
> member named ‘pkt_dts’
> intern/ffmpeg/ffmpeg_compat.h:142:1: warning: comparison between
> signed and unsigned integer expressions
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp: In constructor
> ‘AUD_FFMPEGReader::AUD_FFMPEGReader(std::string)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:181:2: error: class
> ‘AUD_FFMPEGReader’ does not have any field named ‘m_aviocontext’
> In file included from intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp:38:0:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.h:89:2: error: ‘AVIOContext’
> does not name a type
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:185:67: error:
> ‘avformat_open_input’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp: In constructor
> ‘AUD_FFMPEGReader::AUD_FFMPEGReader(AUD_Reference<AUD_Buffer>)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:209:2: error:
> ‘m_aviocontext’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:210:43: error:
> ‘avio_alloc_context’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:220:53: error:
> ‘avformat_open_input’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp: In destructor ‘virtual
> AUD_FFMPEGReader::~AUD_FFMPEGReader()’:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:242:5: error:
> ‘m_aviocontext’ was not declared in this scope
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp: In member function
> ‘virtual void AUD_FFMPEGReader::seek(int)’:
> intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp:331:1: warning:
> comparison between signed and unsigned integer expressions
> scons: *** [/home/interlichtspielhaus/build/linux/intern/audaspace/ffmpeg/AUD_FFMPEGFactory.o]
> Error 1
> scons: *** [/home/interlichtspielhaus/build/linux/intern/audaspace/ffmpeg/AUD_FFMPEGReader.o]
> Error 1
> scons: building terminated because of errors.
>
>
> any help with this one ?
>
> thanks
> inS
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


-- 
With best regards, Sergey I. Sharybin



More information about the Bf-committers mailing list