clearscene / pHash

Github-Repository of the pHash.org library for perceptual hashing.
http://phash.org/
GNU General Public License v3.0
222 stars 47 forks source link

You need FFmpeg #18

Open kakadiyahardik opened 6 years ago

kakadiyahardik commented 6 years ago

I have installed ffmpeg 4.0.2 still gives error You need FFmpeg

ffmpeg ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --disable-x86asm libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100

Error at ./configure

./configure Configuring image hash

checking CImg.h usability... yes checking CImg.h presence... yes checking for CImg.h... yes

Configuring video Hash

checking whether FFmpeg is present... checking for avcodec_alloc_frame in -lavcodec... no configure: error:

*** libavcodec not found. You need FFmpeg. Get it at http://ffmpeg.org/

andrecbarros commented 5 years ago

OK, old thread.

First, it will not work with ffmepg >= 4.

Second, to properly link, at least on linux, issue: CPPFLAGS="$( pkg-config --cflags libavcodec libavutil )" CFLAGS="$( pkg-config --cflags libavcodec libavutil )" LIBS="$( pkg-config --libs libavcodec libavutil )" ./configure

Third, if you don't need video support, disable it using: ./configure --disable-video-hash

bbhopesh commented 5 years ago

Hey @andrecbarros, this didn't work for me. pkg-config commands are working but it still complaints that ffmpeg not found.

andrecbarros commented 5 years ago

On which system are you testing it? Can, you post the error line of ./configure here?