「利用者:Sftrabbit/GSoC 2013/Documentation/Compilation」の版間の差分
< 利用者:Sftrabbit | GSoC 2013 | Documentation
(→Compilation) |
細 (1版 をインポートしました) |
(相違点なし)
|
2018年6月29日 (金) 05:57時点における最新版
目次
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.