Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367997

Summary: media-gfx/blender-2.57-r1: fails to build, missing libavutil/parseutils.h
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ci3nte, graphics+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixes the wrong #include directive

Description Stefan Huber 2011-05-19 08:06:47 UTC
blender-2.57-r1 fails to build on my system due to a wrong #include directive in VideoFFmpeg.cpp which includes "libavutil/parseutils.h" instead of "libavcore/parseutils.h", see below:


Compiling ==> 'VideoFFmpeg.cpp'
In file included from source/gameengine/VideoTexture/VideoFFmpeg.cpp:41:
source/gameengine/VideoTexture/VideoFFmpeg.h:37:34: error: libavutil/parseutils.h: No such file or directory
Compiling ==> 'ImageRender.cpp'
source/gameengine/VideoTexture/VideoFFmpeg.cpp: In member function ‘virtual void VideoFFmpeg::openCam(char*, short int)’:
source/gameengine/VideoTexture/VideoFFmpeg.cpp:644: error: ‘av_parse_video_rate’ was not declared in this scope
scons: *** [/var/tmp/portage/media-gfx/blender-2.57-r1/work/build/linux2/source/gameengine/VideoTexture/VideoFFmpeg.o] Error 1
scons: building terminated because of errors.


After casting a fix into the patch attached (blender-2.57-libavinclude.patch.1), blender builds for me. (This is the file I put into my /etc/packages.patches dir). The affected include file is part of ffmpeg. I use the latest stable ffmpeg version with the use-flags below:

media-gfx/blender-2.57: (dds elbeem ffmpeg game-engine iconv linguas_en openexr openmp sse zlib -apidoc -collada -contrib -debug -fftw -jack -jpeg2k -lcms -linguas_ar -linguas_bg -linguas_ca -linguas_cs -linguas_de -linguas_el -linguas_es -linguas_fi -linguas_fr -linguas_hr -linguas_it -linguas_ja -linguas_ko -linguas_nl -linguas_pl -linguas_pt_BR -linguas_ro -linguas_ru -linguas_sr -linguas_sv -linguas_uk -linguas_zh_CN -openal -player -redcode -sdl -sndfile -tweak-mode -verse)

media-video/ffmpeg-0.6_p25767 (3dnow 3dnowext X alsa bzip2 doc encode hardcoded-tables mmx mmxext mp3 ssse3 theora vorbis x264 xvid zlib -altivec -amr -bindist -cpudetection -custom-cflags -debug -dirac -faac -frei0r -gsm -ieee1394 -jack -jpeg2k -network -oss -pic -qt-faststart -rtmp -schroedinger -sdl -speex -static-libs -test -threads -v4l -v4l2 -vaapi -vdpau -video_cards_nvidia -vpx) 


Reproducible: Always
Comment 1 Stefan Huber 2011-05-19 08:08:24 UTC
Created attachment 273921 [details, diff]
fixes the wrong #include directive
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-19 12:34:17 UTC
<libavutil/parseutils.h> is correct for newer versions of media-video/ffmpeg. Dependencies of media-gfx/blender might need to be updated.
Comment 3 Paul Vint 2011-05-30 16:35:41 UTC
I'd like to confirm that this bug exists when ffmpeg-0.6_p25767 is installed, but with ffmpeg-0.7_rc1 installed libavcore/parseutils.h is in the expected location and thus Blender compiles fine.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2011-06-23 11:11:58 UTC
*** Bug 372141 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Huber 2011-07-23 13:25:11 UTC
Since ffmpeg-0.7_rc1 is stable, this bug report became obsolete.