[pHash-support] compile errors - UINT64_C was not declared in this scope

Evan Klinger eklinger at phash.org
Wed Oct 6 15:43:20 PDT 2010


Your FFmpeg install is probably outdated. Try getting the latest
version and compiling again.

Evan

On Wed, Oct 6, 2010 at 3:23 PM, Andy Saurin <andrew at saurin.com> wrote:
> Hi,
> I'm totally stuck on compiling pHash - here are the errors I'm getting:
> hash.lo -MD -MP -MF .deps/audiophash.Tpo -c -o audiophash.lo audiophash.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -pthread
> -I/usr/local/include -I/usr/include/ffmpeg -Dcimg_use_jpeg -Dcimg_use_png
> -O2 -ffast-math -O3 -MT audiophash.lo -MD -MP -MF .deps/audiophash.Tpo -c
> audiophash.cpp  -fPIC -DPIC -o .libs/audiophash.o
> In file included from /usr/include/c++/4.2/backward/complex.h:31,
>                  from ph_fft.h:32,
>                  from audiophash.h:39,
>                  from audiophash.cpp:25:
> /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> consider using one of the 32 headers found in section 17.4.1.2 of the C++
> standard. Examples include substituting the <X> header for the <X.h> header
> for C++ includes, or <iostream> instead of the deprecated header
> <iostream.h>. To disable this warning use -Wno-deprecated.
> In file included from /usr/local/include/libavutil/avutil.h:88,
>                  from /usr/local/include/libavcodec/avcodec.h:30,
>                  from /usr/local/include/./libavformat/avformat.h:76,
>                  from audiophash.h:36,
>                  from audiophash.cpp:25:
> /usr/local/include/libavutil/common.h: In function ‘int32_t
> av_clipl_int32_c(int64_t)’:
> /usr/local/include/libavutil/common.h:168: error: ‘UINT64_C’ was not
> declared in this scope
> In file included from /usr/include/c++/4.2/ios:45,
>                  from /usr/include/c++/4.2/istream:44,
>                  from /usr/include/c++/4.2/sstream:44,
>                  from /usr/include/c++/4.2/complex:50,
>                  from /usr/include/c++/4.2/backward/complex.h:32,
>                  from ph_fft.h:32,
>                  from audiophash.h:39,
>                  from audiophash.cpp:25:
> /usr/include/c++/4.2/bits/char_traits.h: At global scope:
> /usr/include/c++/4.2/bits/char_traits.h:61: error: template with C linkage
> ...etc
>
> I've tried running
>
> CFLAGS=-D__STDC_CONSTANT_MACROS
>
> as well as
>
> CXXFLAGS=-D__STDC_CONSTANT_MACROS
>
> prior to compile (after make clean/distclean) but all to no avail.
> Any ideas where to go from here for a Ubuntu system?
> Thanks
> Andy
> _______________________________________________
> pHash-support mailing list
> pHash-support at lists.phash.org
> http://lists.phash.org/listinfo.cgi/phash-support-phash.org
>
>



More information about the pHash-support mailing list