[pHash-support] Fwd: Unable to Compile, pHash 0.93

Collin Cusce collin.cusce at wmcglobal.com
Thu Sep 2 09:44:21 PDT 2010


Hello,

I've been having a lot of trouble with getting pHash to compile and run
properly. I'm using Ubuntu on VMWare, and I *think* I've finally gotten all
dependencies down because ./configure isn't showing errors. However, when I
try to compile, it appears to fail at the audio portion.

I cannot attache the configure log as it's too big for the mailer to accept,
but below is the results from the "./make" command.

root at dev1:/opt/pHash# make
make  all-recursive
make[1]: Entering directory `/opt/pHash'
Making all in src
make[2]: Entering directory `/opt/pHash/src'
/bin/bash ../libtool --tag=CXX   --mode=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 pHash.lo -MD -MP -MF
.deps/pHash.Tpo -c -o pHash.lo pHash.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 pHash.lo -MD -MP -MF .deps/pHash.Tpo -c pHash.cpp
-fPIC -DPIC -o .libs/pHash.o
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 pHash.lo -MD -MP -MF .deps/pHash.Tpo -c pHash.cpp -o
pHash.o >/dev/null 2>&1
mv -f .deps/pHash.Tpo .deps/pHash.Plo
/bin/bash ../libtool --tag=CXX   --mode=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 -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
audiophash.cpp: In function âfloat* readaudio_mp3(const char*, long int*,
float, unsigned int*)â:
audiophash.cpp:54: error: invalid conversion from âconst char*â to âchar*â
audiophash.cpp:54: error:   initializing argument 2 of âint
mpg123_open(mpg123_handle*, char*)â
audiophash.cpp:119: error: âMPG123_ENC_FLOAT_32â was not declared in this
scope
make[2]: *** [audiophash.lo] Error 1
make[2]: Leaving directory `/opt/pHash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/pHash'
make: *** [all] Error 2


--Collin Cusce
--WMC Global
--Technology Manager
--Office: (703) 222-6280 x110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phash.org/pipermail/phash-support-phash.org/attachments/20100902/1bc92f85/attachment-0001.htm>


More information about the pHash-support mailing list