[Phash-support] Compiling
Kiran Lall
kiranlall at gmail.com
Mon Jul 6 07:02:24 PDT 2009
Hi,
I've been trying to get up and running on OS X, with a couple of problems.
1: ./configure staright up falls down on the libswscale dependency. I
found it was to do with this:
/usr/bin/ld: Undefined symbols:
_av_free
_av_freep
etc..
This is the latest svn checkout of fmpeg compiled and installed striaght.
Solution is to inlude libavutil, which has the relevant calls (in mem.o)
(./configure LIBS='-lavutil' )
2. Compiling gets the following error...
kMac:~/pHash-0.5.0 k$ make
make all-recursive
Making all in src
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I/usr/local/include -DHAVE_IMAGE_HASH=1 -DHAVE_VIDEO_HASH=1
-DHAVE_AUDIO_HASH=1 -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
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -DHAVE_IMAGE_HASH=1
-DHAVE_VIDEO_HASH=1 -DHAVE_AUDIO_HASH=1 -Dcimg_use_jpeg -Dcimg_use_png
-O2 -ffast-math -O3 -MT pHash.lo -MD -MP -MF .deps/pHash.Tpo -c
pHash.cpp -fno-common -DPIC -o .libs/pHash.o
In file included from pHash.cpp:26:
../config.h:67:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/local/include/jpeglib.h:24,
from CImg.h:261,
from pHash.h:42,
from pHash.cpp:25:
/usr/local/include/jconfig.h:12:1: warning: this is the location of
the previous definition
cimgffmpeg.h: In function 'int ReadFrames(const char*,
cimg_library::CImgList<unsigned char>*, unsigned int, unsigned int,
int, long int)':
cimgffmpeg.h:159: warning: 'avcodec_decode_video' is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3256)
cimgffmpeg.h:160: warning: 'avcodec_decode_video' is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3256)
cimgffmpeg.h: In function 'int NextFrames(const char*,
cimg_library::CImgList<unsigned char>*, int, unsigned int, int)':
cimgffmpeg.h:287: warning: 'avcodec_decode_video' is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3256)
cimgffmpeg.h:288: warning: 'avcodec_decode_video' is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3256)
cimgffmpeg.h: In function 'int
WriteFrames(cimg_library::CImgList<t1>*, const char*, int, float)':
cimgffmpeg.h:528: warning: 'av_alloc_format_context' is deprecated
(declared at /usr/local/include/libavformat/avformat.h:801)
pHash.cpp: In function 'MVPRetCode ph_query_mvptree(MVPFile*, DP*,
int, float, DP**, int*)':
pHash.cpp:1087: error: 'MREMAP_MAYMOVE' was not declared in this scope
pHash.cpp:1087: error: 'mremap' was not declared in this scope
pHash.cpp: In function 'int ph_add_mvptree(MVPFile*, DP**, int)':
pHash.cpp:2025: error: 'MREMAP_MAYMOVE' was not declared in this scope
pHash.cpp:2025: error: 'mremap' was not declared in this scope
make[2]: *** [pHash.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Thanks
More information about the pHash-support
mailing list