After a couple of days of Googling and trying various suggestions, I am setting aside trying to build pHash for MacOS Sierra from source. Then one comment pointed to several issues with using Brew to build pHash. After going down several paths unsuccessfully, I thought I'd just ask if anyone had a formula for pHash that works for MacOS Sierra.
Asked
Active
Viewed 925 times
3
-
Quick google found this if you want to try building it yourself http://stackoverflow.com/questions/11452712/how-to-build-phash-on-macosx-lion-using-latest-ffmpeg-devel – Paul S. Jan 16 '17 at 00:26
-
1Might be related; https://github.com/Homebrew/legacy-homebrew/pull/49268 You may be able to build if you use an old ffmpeg, also https://github.com/azr/phash/issues/3 – Paul S. Jan 16 '17 at 00:32
-
1Thank you for the quick suggestions. In the end I was not successful in building with Brew. I WAS able to finally build pHash from source only by disabling video and audio hashes with the configure flags "--disable-video-hash --disable-audio-hash". For those who might be following this, it finally occurred to me that pHash does not build as an explicit "pHash" executable but rather as a library of pHash functions. The examples directory in the pHash-0.9.6 GitHub source tree has an example command file - test_image - which builds an executable to actually use the pHash functionality. – rick Jan 19 '17 at 23:42