[Paraview] make: unable to find avformat.h
Ken Teague
kteague at pobox.com
Mon Jul 21 20:14:24 EDT 2008
After changing it to look for ffmpeg in libavformat, I managed to get 1%
farther in building it. I now get this error:
[ 14%] Building CXX object VTK/IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o
/usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx: In member function
'int vtkFF MPEGWriterInternal::Write(vtkImageData*)':
/usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx:259: warning:
'img_convert' is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:2501)
/usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx:261: warning:
'img_convert' is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:2501)
/usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx: In member function
'void vtkF FMPEGWriterInternal::End()':
/usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot
convert 'By teIOContext**' to 'ByteIOContext*' for argument '1' to 'int
url_fclose(ByteIOCon text*)'
make[2]: *** [VTK/IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o] Error 1
make[1]: *** [VTK/IO/CMakeFiles/vtkIO.dir/all] Error 2
make: *** [all] Error 2
Here is version info for my ffmpeg:
debian-etch-amd64:/usr/local/bin# ffmpeg --version
FFmpeg version SVN-r14134, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr/local
libavutil version: 49.7.0
libavcodec version: 51.58.0
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Jul 8 2008 19:51:37, gcc: 4.1.2 20061115 (prerelease)
(Debian 4.1.1-21)
Berk Geveci wrote:
> It's looking for it in the ffmpeg directory as opposed to libavformat
> (which is where yours is). You either have to change vtkFFMPEGWriter
> to include it from the right place or install your own ffmpeg version.
>
> -berk
>
> On Tue, Jul 15, 2008 at 9:09 PM, Ken Teague <kteague at pobox.com> wrote:
>> ParaView v3.2.2
>> Qt v4.3.5
>> gcc v4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>> ccmake v2.4-patch 5
>> Debian Etch
>> amd64
>>
>> In ccmake:
>> FFMPEG_INCLUDE_DIR /usr/local/include
>> FFMPEG_avcodec_LIBRARY /usr/local/lib/libavcodec.a
>> FFMPEG_avformat_LIBRARY /usr/local/lib/libavformat.a
>> FFMPEG_avutil_LIBRARY /usr/local/lib/libavutil.a
>>
>> configure and generate in ccmake works fine. When I build it with make, I get:
>> /usr/src/ParaView3.2.2/VTK/IO/vtkFFMPEGWriter.cxx:23:29: error: ffmpeg/avformat.h: No such file or directory
>>
>> But it's there!!
>> debian-etch-amd64:/usr/src/projects/ParaView# find /usr/local -name avformat.h
>> /usr/local/include/libavformat/avformat.h
>>
>> Why is it not finding it?
>>
>> - Ken
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
More information about the ParaView
mailing list