Thank you for your response!<br><br>Let me pretext the following by saying that I am OK with running PHash without video support (I'd like to play around with images).<br><br>I'm also open to using a Windows or Linux system if this is a problem with FFMpeg on the Mac.  If you know of a specific version of Windows or a distribution of Linux that works well with this, I can install that.<br>
<br>Lastly, let me know if you compile FFMpeg with any special options (I just did the default install).<br><br>And now onto my snooping around....<br><br>On Macs, I found out we have .dylibs instead of .so files.<br><br>
I found a libavcodec.dylib which points to libavcodec.52.20.0.dylib<br>This is from the FFMpeg files I installed from MacPorts, located in /opt/local/var/macports/software/ffmpeg/0.5_5/opt/local/lib<br><br>Nothing shows up when I run "strings libavcodec.dylib | grep avcodec_alloc_frame"<br>
<br>When I run "strings libavcodec.dylib | grep avcodec", I get the following:<br><br>macbook-de-sebastian-gallese:lib kdge$ strings libavcodec.dylib | grep avcodec<br>Compiler did not align stack variables. Libavcodec has been miscompiled<br>
and may be very slow or crash. This is not a bug in libavcodec,<br>pic->data[0]!=NULL in avcodec_default_get_buffer<br>insufficient thread locking around avcodec_open/close()<br>libavcodec/motion_est.c<br>libavcodec/motion_est_template.c<br>
libavcodec/ratecontrol.c<br>libavcodec/dvdsubenc.c<br>libavcodec/flacdec.c<br>FFmpeg v%d.%d.%d / libavcodec build: %d<br>libavcodec/mpegvideo_xvmc.c<br>libavcodec/qcelpdec.c<br>libavcodec/snow.c<br>libavcodec/svq1enc.c<br>
libavcodec/vc1.c<br>libavcodec/vorbis_dec.c<br>libavcodec/vorbis_enc.c<br>libavcodec/wmaenc.c<br>libavcodec/libdiracenc.c<br><br>I found nothing similar to libavcodec in /usr/lib<br><br>In the directory /usr/local/lib, I found libavcodec.a, which outputs the following:<br>
<br>macbook-de-sebastian-gallese:lib kdge$ strings libavcodec.a | grep avcodec_alloc_frame<br>_avcodec_alloc_frame<br>avcodec_alloc_frame<br>avcodec_alloc_frame<br><br>These are the other files I found in /usr/local/lib:<br>
<br>macbook-de-sebastian-gallese:lib kdge$ pwd<br>/usr/local/lib<br>macbook-de-sebastian-gallese:lib kdge$ ls -l<br>total 60920<br>drwxr-xr-x  84 root  wheel      2856 Nov 17 03:20 codecs<br>-rw-r--r--   1 root  wheel  22336032 Dec 23 10:32 libavcodec.a<br>
-rw-r--r--   1 root  wheel     31424 Dec 23 10:32 libavdevice.a<br>-rw-r--r--   1 root  wheel   6686464 Dec 23 10:32 libavformat.a<br>-rw-r--r--   1 root  wheel    226080 Dec 23 10:32 libavutil.a<br>-rwxr-xr-x   1 root  wheel    254036 Dec 22 20:05 libjpeg.7.dylib<br>
-rw-r--r--   1 root  wheel   1160680 Dec 22 20:05 libjpeg.a<br>lrwxr-xr-x   1 root  wheel        15 Dec 22 20:05 libjpeg.dylib -> libjpeg.7.dylib<br>-rwxr-xr-x   1 root  wheel       912 Dec 22 20:05 <a href="http://libjpeg.la">libjpeg.la</a><br>
-rw-r--r--   1 root  wheel    469592 Dec 23 10:32 libswscale.a<br>drwxr-xr-x   8 root  wheel       272 Dec 23 10:32 pkgconfig<br><br>I also found the shared library in a folder for MPlayer on my computer, but I received an odd response (perhaps that is the response I should get?):<br>
<br>macbook-de-sebastian-gallese:lib kdge$ pwd<br>/Applications/MPlayer OSX Extended.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/lib<br>macbook-de-sebastian-gallese:lib kdge$ strings libavcodec.dylib | grep avcodec_alloc_frame<br>
strings: for architecture x86_64 object: libavcodec.dylib malformed object (unknown load command 5)<br><br>After searching for all of these libavcodec, I figured it couldn't hurt to try to place a couple of them in the /usr/lib path and try to ./configure pHash again.  So I placed each of the libavcodec's, one at a time, in /usr/lib using the following type of commands:<br>
<br>macbook-de-sebastian-gallese:lib kdge$ cd /opt/local/var/macports/software/ffmpeg/0.5_5/opt/local/lib<br>macbook-de-sebastian-gallese:lib kdge$ sudo ln -s libavcodec.dylib /usr/lib/libavcodec.so && sudo ln -s libavcodec.dylib /usr/lib/libavcodec.dylib<br>
<br>and for each different libavcodec, I still received this in the pHash ./configure<br><br>checking whether FFmpeg is present... checking for avcodec_alloc_frame in -lavcodec... no<br>configure: error:<br><br>*** libavcodec not found.<br>
<br>Thanks,<br>-Seb<br><br><div class="gmail_quote">On Wed, Dec 23, 2009 at 12:13 PM, Evan Klinger <span dir="ltr"><<a href="mailto:eklinger@phash.org">eklinger@phash.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Sebastian,<br>
Can you please locate the libavcodec.so library on your system and run:<br>
<br>
strings libavcodec.so|grep avcodec_alloc_frame<br>
<br>
If that string is present, please also make sure the library is in a<br>
standard system path where the linker can find it. In Linux this is<br>
usually /usr/lib or /usr/local/lib, although the latter requires a<br>
change to /etc/ld.so.conf to recognize libraries in /usr/local/lib.<br>
<br>
Thanks<br>
Evan<br>
<br>
On Wed, Dec 23, 2009 at 8:14 AM, Sebastian Gallese<br>
<<a href="mailto:sebastiangallese@gmail.com">sebastiangallese@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> Hello,<br>
><br>
> I'm having trouble compiling Phase 0.7.1 on Mac OS X 10.5.8<br>
><br>
> Please excuse me if I'm missing something obvious.<br>
><br>
> I first installed FFMpeg from MacPorts.  I then downloaded CImg 1.3.2 and<br>
> placed CImg.h and the plugins and resources folders inside the Phase 0.7.1<br>
> folder.<br>
><br>
> Upon compiling, I was then prompted to install FFMpeg.  I figured the path<br>
> that MacPort installs to can be funky, so I just downloaded the FFMpeg<br>
> source and installed it from the GIT code.  While compiling, the program<br>
> returned the output below.<br>
><br>
> If you need any more information about where things are installed or output,<br>
> I'll post it to the list-serv.<br>
><br>
> It looks like people have had problems compiling with Mac OS X in the past.<br>
> I'd be happy to try to resolve this issue, but I can also move to a Windows<br>
> machine or install a flavor of Linux if you think that might be easier to<br>
> get this to work.<br>
><br>
> Any help is great!<br>
><br>
> Thanks,<br>
><br>
> Seb<br>
><br>
> I received the following error:<br>
><br>
> [...]<br>
><br>
> checking whether the gcj linker<br>
> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries...<br>
> yes<br>
> checking how to hardcode library paths into programs... immediate<br>
><br>
> *** Configuring image hash ***<br>
><br>
> checking CImg.h usability... no<br>
> checking CImg.h presence... no<br>
> checking for CImg.h... no<br>
> checking whether CImg.h is in the current or src directory.... yes<br>
><br>
> *** Configuring video Hash ***<br>
><br>
> checking whether FFmpeg is present... checking for avcodec_alloc_frame in<br>
> -lavcodec... no<br>
> configure: error:<br>
><br>
> *** libavcodec not found.<br>
> You need FFmpeg. Get it at <<a href="http://ffmpeg.org/" target="_blank">http://ffmpeg.org/</a>><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> pHash-support mailing list<br>
> <a href="mailto:pHash-support@lists.phash.org">pHash-support@lists.phash.org</a><br>
> <a href="http://lists.phash.org/listinfo.cgi/phash-support-phash.org" target="_blank">http://lists.phash.org/listinfo.cgi/phash-support-phash.org</a><br>
><br>
><br>
_______________________________________________<br>
pHash-support mailing list<br>
<a href="mailto:pHash-support@lists.phash.org">pHash-support@lists.phash.org</a><br>
<a href="http://lists.phash.org/listinfo.cgi/phash-support-phash.org" target="_blank">http://lists.phash.org/listinfo.cgi/phash-support-phash.org</a><br>
</div></div></blockquote></div><br>