[vtk-developers] build errors with recent changes on FindFFMPEG.cmake

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Thu Mar 25 11:41:20 EDT 2010


During the configuration time, I get:

Checking if FFMPEG uses old style header files - yes

Checking if FFMPEG has img_convert - not found

Checking if FFMPEG uses old API for url_fclose - not found

Checking if FFMPEG has avformat_alloc_context - not found Isn't it 
supposed to be the opposite?


In vtkTestFFMPEG.cmake, I have added line 2:
MESSAGE( STATUS "FFMPEG_INCLUDE_DIR: ${FFMPEG_INCLUDE_DIR}" )
and I get FFMPEG_INCLUDE_DIR: /usr/include and then since 
/usr/include/ffmpeg exists it enters in the old configuration statement.


What is supposed to be FFMPEG_INCLUDE_DIR in my configuration? 
/usr/include/ffmpeg/ ?


Arnaud


On 03/25/2010 10:52 AM, Dave Partyka wrote:
> can you do a make VERBOSE=1 and send me the compile line for 
> vtkFFMPEGWriter.cxx. I am currious if it has a -I/usr/include/ffmpeg 
> or -I/usr/include. Thank you very much for helping me debug this.
>
> On Thu, Mar 25, 2010 at 10:48 AM, Arnaud GELAS 
> <arnaud_gelas at hms.harvard.edu <mailto:arnaud_gelas at hms.harvard.edu>> 
> wrote:
>
>     Hi Dave,
>
>     I have just updated and tried again, same errors:
>     [ 75%] Building CXX object
>     IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o
>     /home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:25:30: error:
>     ffmpeg/avformat.h: No such file or directory
>     /home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:32:30: error:
>     ffmpeg/swscale.h: No such file or directory
>     /home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:57: error: ISO C++
>     forbids declaration of ‘AVFormatContext’ with no type
>
>
>     ffmpeg headers are installed as follows:
>
>     /usr/include/ffmpeg/libavcodec/avcodec.h
>     /usr/include/ffmpeg/libavformat/avformat.h
>     /usr/include/ffmpeg/libavutil/avutil.h
>     /usr/include/ffmpeg/libswscale/swscale.h
>
>     They seem seem to be found during the cmake configuration time,
>     which is supposed to be for recent version of ffmpeg (It may be a
>     wrong assumption here).
>     The error sounds like it assume my system has an older version of
>     ffmpeg...
>
>     Arnaud
>
>
>
>     On 03/25/2010 10:35 AM, Dave Partyka wrote:
>>     Hi Arnaud,
>>
>>     The intention of my change was to get it working with where
>>     apt-get installs the headers/libraries on Debian. :-/ Can you
>>     share where the ffmpeg headers and libraries are installed on
>>     your machine, particularly avcodec,h avformat.h avutil.h
>>     swscale.h (this one may not exist at all) and the equivalent libs
>>     (libavcodec, libavformat, libavutil, libswscale? Also if you try
>>     updating and doing a build right now does the error go away? I
>>     checked in a few more changes this morning.
>>
>>     On Thu, Mar 25, 2010 at 10:24 AM, Arnaud GELAS
>>     <arnaud_gelas at hms.harvard.edu
>>     <mailto:arnaud_gelas at hms.harvard.edu>> wrote:
>>
>>         Hi,
>>
>>         With the recent changes in FindFFMPEG.cmake, vtk is not
>>         compiling anymore with FFMPEG on my machine. It was perfectly
>>         working until last night...
>>
>>         http://www.cdash.org/CDash/viewBuildError.php?buildid=570714
>>
>>         I can set up a nightly build to track/solve this error if needed.
>>
>>         My machine is a Linux Fedora Core 12 (64 bits) with ffmpeg
>>         installed using yum.
>>
>>         The commit message on FindFFMPEG.cmake states "COMP: further
>>         fixes to get FFMPEG to be found properly on Linux."
>>         Is there any distribution dependency on how ffmpeg is installed?
>>
>>         Arnaud
>>
>>
>>         _______________________________________________
>>         Powered by www.kitware.com <http://www.kitware.com>
>>
>>         Visit other Kitware open-source projects at
>>         http://www.kitware.com/opensource/opensource.html
>>
>>         Follow this link to subscribe/unsubscribe:
>>         http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100325/91562b81/attachment.html>


More information about the vtk-developers mailing list