利用者:Sftrabbit/GSoC 2013/Documentation/Compilation
< 利用者:Sftrabbit | GSoC 2013 | Documentation
2013年7月12日 (金) 07:52時点におけるwiki>Sftrabbitによる版 (→Compilation)
目次
Compilation
Compilation process
Compile FFMPEG
wget -c http://ffmpeg.org/releases/ffmpeg-0.8.2.tar.bz2 tar -xf ffmpeg-0.8.2.tar.bz2 cd ffmpeg-0.8.2.tar ./configure --prefix=/opt/ffmpeg-0.8.2 --enable-shared make sudo make install
Compile Blender
Where ../svn/
is the source directory:
cmake ../svn/ -DWITH_CODEC_FFMPEG=ON -DFFMPEG=/opt/ffmpeg-0.8.2/ make sudo make install
Errors encountered
Here's some errors I encountered and their solutions.
In file included from source/blender/blenkernel/intern/writeffmpeg.c:70:0: intern/ffmpeg/ffmpeg_compat.h:99:5: error: static declaration of ‘av_sample_fmt_is_planar’ follows non-static declaration In file included from /usr/include/libavcodec/avcodec.h:30:0, from /usr/include/libavformat/avformat.h:140, from source/blender/blenkernel/intern/writeffmpeg.c:42: /usr/include/libavutil/samplefmt.h:93:5: note: previous declaration of ‘av_sample_fmt_is_planar’ was here
The version of FFMPEG with my system didn't match the version required for compiling Blender. Instead, compile version 0.8.2 as above and specify its location with the -DFFMPEG option to cmake.