<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=windows-1252"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It seems that changing in FindFFMPEG.cmake<br>
get_filename_component(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR} PATH)<br>
<br>
by<br>
get_filename_component(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR}
ABSOLUTE)<br>
<br>
make it work on my configuration and on an ubuntu installation. I mean
it detects that it is a new version (and that should normally compile
afterwards).<br>
<br>
Can you confirm that it works on your machine?<br>
<br>
On 03/25/2010 11:50 AM, Dave Partyka wrote:
<blockquote
 cite="mid:a44d4ae01003250850v62d84a33ra5ad258940762f06@mail.gmail.com"
 type="cite">The idea of my changes should have FFMPEG_INCLUDE_DIR set
to /usr/include so that include<ffmpeg/avcodec.h> inside of
vtkFFMPEGWriter works. Which corresponds to the "old style". The new
style (if you download ffmpeg from svn and do a make install) places
each libs header in a separate directory, such as libavcodec/avcodec.h.<br>
  <br>
  <div class="gmail_quote">On Thu, Mar 25, 2010 at 11:41 AM, Arnaud
GELAS <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">During the configuration
time, I get:<br>
    <br>
    <p style="margin: 0px; text-indent: 0px;">Checking
if FFMPEG uses old style header files - yes</p>
    <p style="margin: 0px; text-indent: 0px;">Checking if FFMPEG has
img_convert - not found</p>
    <p style="margin: 0px; text-indent: 0px;">Checking if FFMPEG uses
old
API for url_fclose - not found</p>
    <p style="margin: 0px; text-indent: 0px;">Checking if FFMPEG has
avformat_alloc_context - not found
Isn't it supposed to be the opposite?</p>
    <p style="margin: 0px; text-indent: 0px;"><br>
In vtkTestFFMPEG.cmake, I have added line 2: <br>
MESSAGE( STATUS "FFMPEG_INCLUDE_DIR: ${FFMPEG_INCLUDE_DIR}" )<br>
and I get FFMPEG_INCLUDE_DIR: /usr/include and then since
/usr/include/ffmpeg exists it enters in the old configuration statement.<br>
    </p>
    <p style="margin: 0px; text-indent: 0px;"><br>
What is supposed to be FFMPEG_INCLUDE_DIR in my configuration?
/usr/include/ffmpeg/ ?<br>
    </p>
    <p style="margin: 0px; text-indent: 0px;"><br>
Arnaud<br>
    </p>
    <br>
    <div class="im">On 03/25/2010 10:52 AM, Dave Partyka wrote:
    </div>
    <div>
    <div class="h5">
    <blockquote type="cite">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.<br>
      <br>
      <div class="gmail_quote">On Thu, Mar 25, 2010 at 10:48 AM, Arnaud
GELAS <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:arnaud_gelas@hms.harvard.edu" target="_blank">arnaud_gelas@hms.harvard.edu</a>></span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div bgcolor="#ffffff" text="#000000">Hi Dave,<br>
        <br>
I have just updated and tried again, same errors:<br>
[ 75%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o<br>
/home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:25:30: error:
ffmpeg/avformat.h: No such file or directory<br>
/home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:32:30: error:
ffmpeg/swscale.h: No such file or directory<br>
/home/ajg23/CVSROOT/VTK/IO/vtkFFMPEGWriter.cxx:57: error: ISO C++
forbids declaration of ‘AVFormatContext’ with no type<br>
        <br>
        <br>
ffmpeg headers are installed as follows:<br>
        <br>
/usr/include/ffmpeg/libavcodec/avcodec.h<br>
/usr/include/ffmpeg/libavformat/avformat.h<br>
/usr/include/ffmpeg/libavutil/avutil.h<br>
/usr/include/ffmpeg/libswscale/swscale.h<br>
        <br>
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).<br>
The error sounds like it assume my system has an older version of
ffmpeg...<br>
        <font color="#888888"><br>
Arnaud</font>
        <div>
        <div><br>
        <br>
        <br>
On 03/25/2010 10:35 AM, Dave Partyka wrote:
        <blockquote type="cite">Hi Arnaud,
          <div><br>
          </div>
          <div>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. <br>
          <br>
          <div class="gmail_quote">On Thu, Mar 25, 2010 at 10:24 AM,
Arnaud
GELAS <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:arnaud_gelas@hms.harvard.edu" target="_blank">arnaud_gelas@hms.harvard.edu</a>></span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
            <br>
With the recent changes in FindFFMPEG.cmake, vtk is not compiling
anymore with FFMPEG on my machine. It was perfectly working until last
night...<br>
            <br>
            <a moz-do-not-send="true"
 href="http://www.cdash.org/CDash/viewBuildError.php?buildid=570714"
 target="_blank">http://www.cdash.org/CDash/viewBuildError.php?buildid=570714</a><br>
            <br>
I can set up a nightly build to track/solve this error if needed.<br>
            <br>
My machine is a Linux Fedora Core 12 (64 bits) with ffmpeg installed
using yum.<br>
            <br>
The commit message on FindFFMPEG.cmake states "COMP: further fixes to
get FFMPEG to be found properly on Linux."<br>
Is there any distribution dependency on how ffmpeg is installed?<br>
            <br>
Arnaud<br>
            <br>
            <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
            <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
            <br>
Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtk-developers"
 target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
            <br>
          </blockquote>
          </div>
          <br>
          </div>
        </blockquote>
        <br>
        </div>
        </div>
        </div>
      </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>