ffmpeg INT64_C problem and Workaround

While compiling opencv version 1.0 on Centos 5, the process stopped with an error due to non definition of “INT64_C” in file cvcap_ffmpeg.cpp. After trawling through some forums, i got the following solution:

in /usr/local/include/ffmpeg/avformat.h:

#define INT64_C

#define __STDC_CONSTANT_MACROS

#include <stdint.h>

This is not my own workaround. I got this from

http://sushee.schreibsturm.org/article/1596/errors-with-int64c-due-to-ffmpeg-use#c005295

Thanks!

There is another workaround; this is done while installing ffmpeg. I do not remember where i got this solution from.

Use -D__STDC_CONSTANT_MACROS while compiling FFMPEG. This is to be added in the CFLAGS i think. One way of doing this is to open the file config.status and add this to the line containing the CFLAGS.

Blogged with Flock

Advertisements
Post a comment or leave a trackback: Trackback URL.

Comments

  • Tim  On April 11, 2008 at 2:47 pm

    Thanks for the information.

    I was able to get around it by exporting:
    CXXFLAGS=-D__STDC_CONSTANT_MACROS before compiling opencv-1.0

    Regards,
    Tim

  • V Srikrishnan  On May 10, 2008 at 11:41 am

    Hi Tim,
    Thanks for the information. I had found it earlier in some forum(ffmpeg/gcc), I id not remember the links and hence had not posted it.
    Krishnan

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: