My bad

After complete rebuild, fix break the compilation.


Please ignore this submission for now.

David


2009/3/12 David Callu <[email protected]>

> Hi Ulrich, Hi Robert, Hi FindFFmpeg.cmake contributor
>
>
> Under Fedora, and perhaps other Linux distribution, ffmpeg header are
> located in
>     /usr/include/ffmpeg/libavcodec
>     /usr/include/ffmpeg/libavdevice
>     /usr/include/ffmpeg/libavutil
>     /usr/include/ffmpeg/libavformat
>     /usr/include/ffmpeg/libswscale
>
> So I modify the FindFFmpeg.cmake to properly find ffmpeg header.
>
>
>
>
>
> BTW, I notice that other FIND_PATH macro search
>   - ${headername}
>   - lib${shortname}/${headername}
>   - ffmpeg/${headername}
>  in
>   - /usr/local/include
>   - /usr/include
>
> but ffmpeg plugin use <avcodec.h>, so cmake have to search avcodec.h in
>   - /usr/include/
>   - /usr/include/lib${shortname}
>   - /usr/include/ffmpeg
>   - /usr/include/ffmpeg/lib${shortname}
>
> Am i wrong ?
>
>
>
>
> I join the modified FindFFmpeg.cmake.
>
> Cheer
> David
>
>
>
> 2009/3/7 Ulrich Hertlein <[email protected]>
>
> ,Hi Robert,
>>
>> On 7/3/09 8:46 PM, Robert Osfield wrote:
>>
>>> There's something really odd going on with cmake:
>>>> it detects the proper include directories (like
>>>> /opt/local/include/ffmpeg
>>>> for libavformat and /opt/local/include/libavdevice for avdevice) but
>>>> stores
>>>> /opt/local/include in CMakeCache so it won't actually find those files.
>>>>
>>>
>>> Peculiar.  When I install ffmpeg from Ubuntu repositories I get all
>>> the headers in ffmpeg, but if I compile myself from ffmpeg svn it
>>> installs in include/libavformat, include/libavdevice etc.  So it's odd
>>> that your install is mix of this.
>>>
>>
>> I'll say!  The files in include/ffmpeg are symlinks to ../libavcodec/,
>> ../libavformat/, and ../libavutil.  But it doesn't have symlinks for
>> libavdevice, libswscale.  libavdevice seems to be more recent (kubuntu 8.04
>> doesn't even know about this) so I get the impression that include/ffmpeg is
>> provided for backwards compatibility.
>>
>>  The ffmpeg/CMakeList.txt adds extra search paths for ffmpeg,
>>> lbavformat etc as well as the base include directories so should find
>>> them even if the base directory /opt/local/include is used.
>>>
>>
>> Yes, I've seen that just today.  Oddly enough after reverting everything
>> it's compiling fine again.  Maybe it was a botched CMakeCache or whatnot.
>>  Whatever.
>>
>> Cheers,
>> /ulrich
>>
>> _______________________________________________
>> osg-submissions mailing list
>> [email protected]
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to