libavutil/common.h:173:47: error: ‘UINT64_C’ was not declared in this scope
Hello! I get a problem when compiling, which I will describe below: I am using the latest Ubuntu--version in VirtualBox. I am running parts of the encoding-example avaiable in ffmpeg/doc/examples. When I run it I get the following error: In file included from /usr/local/include/libavutil/avutil.h:327:0, from /usr/local/include/libavutil/imgutils.h:30, from videofecencoder.cc:31: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:173:47: error: ‘UINT64_C’ was not declared in this scope How is this resolved? Thanks in advance! --*Anders Brandeud *[Personal blog] Will of the Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/> : Logical reasons - based on scientific premises - for the existence of a Super intelligent and Orderly Creator and that He hasn't left His sapient creatures without an Instruction Manual - Torah ['books of Moses'] - to ascertain, and aspire to, His purpose. [Company] Anders Branderud IT Solutions - www.abitsolutions.org
2012/3/15 Anders Branderud <anders.branderud@gmail.com>:
Hello!
I get a problem when compiling, which I will describe below: I am using the latest Ubuntu--version in VirtualBox.
I am running parts of the encoding-example avaiable in ffmpeg/doc/examples. When I run it I get the following error: In file included from /usr/local/include/libavutil/avutil.h:327:0, from /usr/local/include/libavutil/imgutils.h:30, from videofecencoder.cc:31: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:173:47: error: ‘UINT64_C’ was not declared in this scope
Please consider posting all related info. Missing your compilation command line. Next time, use libav-user maillist for ffmpeg _libraries_ usage. -- Andrey Utkin
Anders Branderud <anders.branderud <at> gmail.com> writes:
I am running parts of the encoding-example avaiable in ffmpeg/doc/examples. When I run it I get the following error: In file included from /usr/local/include/libavutil/avutil.h:327:0, from /usr/local/include/libavutil/imgutils.h:30, from videofecencoder.cc:31: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:173:47: error: ‘UINT64_C’ was not declared in this scope
Could you confirm that you are using a C compiler (not a C++ compiler) to compile files from a C library (or that you took appropriate action like defining all necessary constants to use a C library from a C++ project)? Carl Eugen
Hi all, I am getting the same problem as yours. I have configured ffmpeg ./configure --enable-shared --enable-version3 --enable-version3 and I am getting the following error: /workspace1/avconv/avconv_master/libav/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /workspace1/avconv/avconv_master/libav/libavutil/common.h:150:47: error: ‘UINT64_C’ was not declared in this scope I'm using ubuntu 12.04. Please help me. Thanks in advance. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/libavutil-common-h-173-47-error-UIN... Sent from the FFmpeg-users mailing list archive at Nabble.com.
I have figured out mine problem. I have main.cpp file and I was trying to compile with gcc. After I had changed main.cpp to main.c compilation went OK. If your source file has .cpp extension change it to .c. I hope it will solve your problem too. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/libavutil-common-h-173-47-error-UIN... Sent from the FFmpeg-users mailing list archive at Nabble.com.
edward20 <edward.chopuryan <at> gmail.com> writes:
/workspace1/avconv/avconv_master/libav/libavutil/common.h
Please remember that since avconv contains a few hundred known bugs not reproducible with FFmpeg, some of them security relevant, we cannot support it here. You can get supported versions at http://ffmpeg.org/download.html Also consider reading http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html to learn more. Regarding your problem: FFmpeg is a C project and provides C libraries and headers, if you want to use the library from C++, it is your responsibility to provide all necessary precautions, including to define __STDC_CONSTANT_MACROS Carl Eugen
participants (4)
-
Anders Branderud -
Andrey Utkin -
Carl Eugen Hoyos -
edward20