<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I'm totally stuck on compiling pHash - here are the errors I'm getting:</div><div><br></div><div><div>hash.lo -MD -MP -MF .deps/audiophash.Tpo -c -o audiophash.lo audiophash.cpp</div><div>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</div><div>In file included from /usr/include/c++/4.2/backward/complex.h:31,</div><div> from ph_fft.h:32,</div><div> from audiophash.h:39,</div><div> from audiophash.cpp:25:</div><div>/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.</div><div>In file included from /usr/local/include/libavutil/avutil.h:88,</div><div> from /usr/local/include/libavcodec/avcodec.h:30,</div><div> from /usr/local/include/./libavformat/avformat.h:76,</div><div> from audiophash.h:36,</div><div> from audiophash.cpp:25:</div><div>/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:</div><div>/usr/local/include/libavutil/common.h:168: error: ‘UINT64_C’ was not declared in this scope</div><div>In file included from /usr/include/c++/4.2/ios:45,</div><div> from /usr/include/c++/4.2/istream:44,</div><div> from /usr/include/c++/4.2/sstream:44,</div><div> from /usr/include/c++/4.2/complex:50,</div><div> from /usr/include/c++/4.2/backward/complex.h:32,</div><div> from ph_fft.h:32,</div><div> from audiophash.h:39,</div><div> from audiophash.cpp:25:</div><div>/usr/include/c++/4.2/bits/char_traits.h: At global scope:</div><div>/usr/include/c++/4.2/bits/char_traits.h:61: error: template with C linkage</div></div><div>...etc</div><div><br></div><div><br></div><div>I've tried running</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; "><pre style="font-size: 12px; white-space: pre-wrap; overflow-x: hidden; overflow-y: hidden; padding-left: 0.7em; ">CFLAGS=-D__STDC_CONSTANT_MACROS</pre></span><div>as well as</div></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; "><pre style="font-size: 12px; white-space: pre-wrap; overflow-x: hidden; overflow-y: hidden; padding-left: 0.7em; ">CXXFLAGS=-D__STDC_CONSTANT_MACROS</pre></span><div><br></div></div><div>prior to compile (after make clean/distclean) but all to no avail.</div><div><br></div><div>Any ideas where to go from here for a Ubuntu system? </div><div><br></div><div>Thanks</div><div>Andy</div></body></html>