[pHash-support] compile errors - UINT64_C was not declared in this scope
andrew at saurin.com
Wed Oct 6 15:23:54 PDT 2010
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,
/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 184.108.40.206 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,
/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,
/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
I've tried running
as well as
prior to compile (after make clean/distclean) but all to no avail.
Any ideas where to go from here for a Ubuntu system?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pHash-support