[vtk-developers] build errors with recent changes on FindFFMPEG.cmake
Arnaud GELAS
arnaud_gelas at hms.harvard.edu
Thu Mar 25 10:56:32 EDT 2010
No -I/usr/include/ffmpeg or -I/usr/include
It seems the INCLUDE_DIRECTORIES in this case is missing...
[ 75%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o
cd /home/ajg23/CVSROOT/VTK/BUILD/Debug/IO && /usr/lib64/ccache/c++
-DVTK_IN_VTK -Wno-deprecated -g -I/home/ajg23/CVSROOT/VTK/BUILD/Debug
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Common
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/VolumeRendering
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Rendering
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Charts
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/vtkalglib
-I/home/ajg23/CVSROOT/VTK/Infovis -I/home/ajg23/CVSROOT/VTK/Geovis
-I/home/ajg23/CVSROOT/VTK/Views -I/home/ajg23/CVSROOT/VTK/Parallel
-I/home/ajg23/CVSROOT/VTK/VolumeRendering
-I/home/ajg23/CVSROOT/VTK/Hybrid -I/home/ajg23/CVSROOT/VTK/Widgets
-I/home/ajg23/CVSROOT/VTK/Rendering -I/home/ajg23/CVSROOT/VTK/Charts
-I/home/ajg23/CVSROOT/VTK/Rendering/Testing/Cxx
-I/home/ajg23/CVSROOT/VTK/IO -I/home/ajg23/CVSROOT/VTK/Imaging
-I/home/ajg23/CVSROOT/VTK/Graphics
-I/home/ajg23/CVSROOT/VTK/GenericFiltering
-I/home/ajg23/CVSROOT/VTK/Filtering -I/home/ajg23/CVSROOT/VTK/Common
-I/home/ajg23/CVSROOT/VTK/Utilities
-I/home/ajg23/CVSROOT/VTK/Common/Testing/Cxx
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/vtklibproj4
-I/home/ajg23/CVSROOT/VTK/Utilities/vtklibproj4
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/DICOMParser
-I/home/ajg23/CVSROOT/VTK/Utilities/DICOMParser
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/vtkfreetype/include
-I/home/ajg23/CVSROOT/VTK/Utilities/vtkfreetype/include
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/vtknetcdf
-I/home/ajg23/CVSROOT/VTK/Utilities/vtknetcdf
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/vtkexodus2/include
-I/home/ajg23/CVSROOT/VTK/Utilities/vtkexodus2/include
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/MaterialLibrary
-I/home/ajg23/CVSROOT/VTK/Utilities/MaterialLibrary
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/verdict
-I/home/ajg23/CVSROOT/VTK/Utilities/verdict
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/VPIC
-I/home/ajg23/CVSROOT/VTK/Utilities/VPIC
-I/home/ajg23/CVSROOT/VTK/Utilities/utf8/source
-I/home/ajg23/CVSROOT/VTK/GUISupport/Qt
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/GUISupport/Qt
-I/home/ajg23/CVSROOT/VTK/GUISupport/Qt/Chart
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/GUISupport/Qt/Chart
-I/home/ajg23/CVSROOT/VTK/Utilities/vtkalglib
-I/home/ajg23/CVSROOT/VTK/Utilities/ftgl/src
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/Utilities/ftgl
-I/home/ajg23/CVSROOT/VTK/BUILD/Debug/IO -I/usr/include/mysql
-fvisibility=hidden -fvisibility-inlines-hidden -o
CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o -c
/home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx
/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
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/f2c799ff/attachment.html>
More information about the vtk-developers
mailing list