[FFmpeg-trac] #1783(undetermined:new): libavutil contains file with the same name as a system header

FFmpeg trac at avcodec.org
Mon Dec 31 10:42:16 CET 2012


#1783: libavutil contains file with the same name as a system header
-------------------------------------+-------------------------------------
             Reporter:  obucinac     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Granjow):

 If someone else finds error messages like those and uses CMake for finding
 ffmpeg (which automatically returns an absolute path):

 In file included from /data/cworkspace/phenoCam/src/lib/videoTools/avi-
 timeextract.h:17:0,
                  from /data/cworkspace/phenoCam/src/lib/videoTools/avi-
 timeextract.cpp:12:
 /usr/include/c++/4.7/ctime:62:11: error: ‘::clock_t’ has not been declared
 /usr/include/c++/4.7/ctime:63:11: error: ‘::time_t’ has not been declared
 /usr/include/c++/4.7/ctime:66:11: error: ‘::clock’ has not been declared
 /usr/include/c++/4.7/ctime:67:11: error: ‘::difftime’ has not been
 declared
 /usr/include/c++/4.7/ctime:68:11: error: ‘::mktime’ has not been declared
 /usr/include/c++/4.7/ctime:69:11: error: ‘::time’ has not been declared
 /usr/include/c++/4.7/ctime:70:11: error: ‘::asctime’ has not been declared
 /usr/include/c++/4.7/ctime:71:11: error: ‘::ctime’ has not been declared
 /usr/include/c++/4.7/ctime:72:11: error: ‘::gmtime’ has not been declared
 /usr/include/c++/4.7/ctime:73:11: error: ‘::localtime’ has not been
 declared
 /usr/include/c++/4.7/ctime:74:11: error: ‘::strftime’ has not been
 declared

 Use something like this to correct the path:

 string(REPLACE "/usr/include/" "" FFMPEG_INCLUDE_DIR
 "${FFMPEG_INCLUDE_DIR}")

 (Ugly hack but works)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1783#comment:15>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list