"cvcap_ffmpeg.cpp:250: error: integer constant is too large for 'long' type"
You need to add two lines as follow in the beginning of ".../highgui/cvcap_ffmpeg.cpp".
#define INT64_C
#define __STDC_CONSTANT_MACROS
#define INT64_C
#define __STDC_CONSTANT_MACROS
Then, run make again. This error will be caused if your FFmpeg is properly installed. My first few attempts of installations seem lucky but the reality is that FFmpeg is not enabled.
The next error would looks like this:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in
this scope
This problem is triggered by some incompatibilities of C code and C++ code. You could solve this by simply adding "-D__STDC_CONSTANT_MACROS" in "Extra_C_Flags", like what I did in the following image.
I've trying to install opencv for ages now, I always have problems. Can you tell me how to install it with ffmpeg disabled? In the meantime I will try to do what you say here... and subscribe to this blog, proves to be pretty usefull.
ReplyDeleteZloy, I think FFmpeg is disabled by default.
ReplyDelete