[pHash-support] Dependencies, and some build problems

Nick Welch mackstann at gmail.com
Sat Apr 24 14:40:35 PDT 2010


Hi, your dependencies list on the download page seems to omit libavcodec,
libavformat, and libswscale.  I had to install them for ./configure to succeed.

Also, running 'make' dies very quickly with compile errors. My gcc --version is
"gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1"

Here is the error output:

~/pHash-0.9.0 % make
make  all-recursive
make[1]: Entering directory `/home/nick/pHash-0.9.0'
Making all in src
make[2]: Entering directory `/home/nick/pHash-0.9.0/src'
/bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I..   -pthread -I/usr/local/include -I/usr/include/ffmpeg
-Dcimg_use_jpeg -Dcimg_use_png  -O2 -ffast-math -O3 -MT pHash.lo -MD
-MP -MF .deps/pHash.Tpo -c -o pHash.lo pHash.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -pthread
-I/usr/local/include -I/usr/include/ffmpeg -Dcimg_use_jpeg
-Dcimg_use_png -O2 -ffast-math -O3 -MT pHash.lo -MD -MP -MF
.deps/pHash.Tpo -c pHash.cpp  -fPIC -DPIC -o .libs/pHash.o
pHash.cpp: In function ‘int ph_radon_projections(const
cimg_library::CImg<unsigned char>&, int, Projections&)’:
pHash.cpp:76: error: ‘img->cimg_library::CImg<unsigned char>::width’
cannot be used as a function
pHash.cpp:77: error: ‘img->cimg_library::CImg<unsigned char>::height’
cannot be used as a function
pHash.cpp:102: error: ‘ptr_radon_map->cimg_library::CImg<unsigned
char>::data’ cannot be used as a function
pHash.cpp:106: error: ‘ptr_radon_map->cimg_library::CImg<unsigned
char>::data’ cannot be used as a function
pHash.cpp:119: error: ‘ptr_radon_map->cimg_library::CImg<unsigned
char>::data’ cannot be used as a function
pHash.cpp:123: error: ‘ptr_radon_map->cimg_library::CImg<unsigned
char>::data’ cannot be used as a function
pHash.cpp: In function ‘int ph_feature_vector(const Projections&, Features&)’:
pHash.cpp:141: error: ‘projection_map.cimg_library::CImg<unsigned
char>::height’ cannot be used as a function
pHash.cpp: In function ‘int _ph_image_digest(const
cimg_library::CImg<unsigned char>&, double, double, Digest&, int)’:
pHash.cpp:262: error: ‘const struct cimg_library::CImg<unsigned char>’
has no member named ‘spectrum’
pHash.cpp:265: error: ‘const struct cimg_library::CImg<unsigned char>’
has no member named ‘spectrum’
pHash.cpp:275: error: no matching function for call to
‘cimg_library::CImg<unsigned char>::max()’
/usr/include/CImg.h:8146: note: candidates are: cimg_library::CImg<T>&
cimg_library::CImg<T>::max(const T&) [with T = unsigned char]
pHash.cpp: In function ‘cimg_library::CImg<float>* ph_dct_matrix(int)’:
pHash.cpp:354: error: ‘ptr_matrix->cimg_library::CImg<float>::data’
cannot be used as a function
pHash.cpp: In function ‘int ph_dct_imagehash(const char*, ulong64&)’:
pHash.cpp:373: error: ‘struct cimg_library::CImg<unsigned char>’ has
no member named ‘spectrum’
pHash.cpp:375: error: ‘struct cimg_library::CImg<unsigned char>’ has
no member named ‘spectrum’
pHash.cpp:376: error: ‘img.cimg_library::CImg<float>::width’ cannot be
used as a function
pHash.cpp:377: error: ‘img.cimg_library::CImg<float>::height’ cannot
be used as a function
pHash.cpp:378: error: ‘img.cimg_library::CImg<float>::depth’ cannot be
used as a function
pHash.cpp: In function ‘cimg_library::CImgList<unsigned char>*
ph_getKeyFramesFromVideo(const char*)’:
pHash.cpp:527: error: ‘pframelist->cimg_library::CImgList<unsigned
char>::size’ cannot be used as a function
pHash.cpp: In function ‘ulong64* ph_dct_videohash(const char*, int&)’:
pHash.cpp:665: error: ‘keyframes->cimg_library::CImgList<unsigned
char>::size’ cannot be used as a function
pHash.cpp:674: error: ‘keyframes->cimg_library::CImgList<unsigned
char>::size’ cannot be used as a function
pHash.cpp: In function ‘cimg_library::CImg<float>* GetMHKernel(float, float)’:
pHash.cpp:931: error: ‘struct cimg_library::CImg<float>’ has no member
named ‘atXY’
pHash.cpp: In function ‘uint8_t* ph_mh_imagehash(const char*, int&,
float, float)’:
pHash.cpp:946: error: ‘struct cimg_library::CImg<unsigned char>’ has
no member named ‘spectrum’
pHash.cpp:947: error: ‘struct cimg_library::CImg<unsigned char>’ has
no member named ‘get_equalize’
pHash.cpp:949: error: ‘struct cimg_library::CImg<unsigned char>’ has
no member named ‘get_equalize’
pHash.cpp:971: error: ‘struct cimg_library::CImg<float>’ has no member
named ‘mean’
make[2]: *** [pHash.lo] Error 1
make[2]: Leaving directory `/home/nick/pHash-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nick/pHash-0.9.0'
make: *** [all] Error 2



More information about the pHash-support mailing list