Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindings / PHP build #21

Open
AGenchev opened this issue Jun 4, 2020 · 2 comments
Open

bindings / PHP build #21

AGenchev opened this issue Jun 4, 2020 · 2 comments

Comments

@AGenchev
Copy link

AGenchev commented Jun 4, 2020

Trying to build the php extension, on the configure step:
./configure LIBS="-lpthread" --with-pHash="/usr/local"
checking for pHash in default path... found in /usr/local
....
error: 'pHash.h' header not found.

I verified that:
pHash.h is in /usr/local/include/pHash.h
and lib is also installed in /usr/local/lib/libpHash.so.1.0.0

@AGenchev
Copy link
Author

AGenchev commented Jun 4, 2020

It turned that the simple compile guide is missing a lot: To make 'pHash.h' to be "found", we need also:
sudo apt-get install libavformat-dev libmpg123-dev libsamplerate-dev libsndfile-dev
sudo apt-get install cimg-dev libavcodec-dev ffmpeg libswscale-dev which in turn needs OpenCV,
so total of +1 GB worth of dependencies.
Now, we have:

..
checking pHash.h usability... yes
checking pHash.h presence... yes
..

Now we have another error:

checking audiophash.h usability... no
checking audiophash.h presence... no

for now I've ran out of Google/ideas.

@Xymph
Copy link

Xymph commented Aug 31, 2021

I found that by copying that .h file from src/ into the include path allows configure to continue:
cp src/audiophash.h /usr/local/include/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants