You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used ccmake to configure the Makefiles, setting WITH_VIDEO_HASH to ON. Subsequently building with make, the process throws an error when trying to build examples/test_dctvideohash.cpp.
Error details
/path/to/phash/examples/test_dctvideohash.cpp:44:25: error: use of undeclared identifier
'ph_dct_videohash'; did you mean 'ph_dct_imagehash'?
hashes[i - 1] = ph_dct_videohash(argv[i], lengths[i - 1]);
^~~~~~~~~~~~~~~~
ph_dct_imagehash
/usr/local/include/pHash.h:229:5: note: 'ph_dct_imagehash' declared here
int ph_dct_imagehash(const char* file,ulong64 &hash);
^
Workaround
Looking in pHash.h, I can see #ifdef conditionally wrapping the signature for ph_dct_videohash. I used make -n to find the c++ command that was being used to compile the file that was throwing an error. I added -D HAVE_VIDEO_HASH=1 to that command, and ran it, which successfully compiled. I then continued to run make and make install which completed successfully.
I'm not sure if the problem here is my configuration, my environment (Mac OS 10.14), or something else.
The text was updated successfully, but these errors were encountered:
chalford
changed the title
Running make fails when building examples/test_dctvideohash.cpp
Running make fails when building examples/test_dctvideohash.cpp
Nov 29, 2019
I used
ccmake
to configure the Makefiles, settingWITH_VIDEO_HASH
toON
. Subsequently building withmake
, the process throws an error when trying to buildexamples/test_dctvideohash.cpp
.Error details
Workaround
Looking in
pHash.h
, I can see#ifdef
conditionally wrapping the signature forph_dct_videohash
. I usedmake -n
to find thec++
command that was being used to compile the file that was throwing an error. I added-D HAVE_VIDEO_HASH=1
to that command, and ran it, which successfully compiled. I then continued to runmake
andmake install
which completed successfully.I'm not sure if the problem here is my configuration, my environment (Mac OS 10.14), or something else.
The text was updated successfully, but these errors were encountered: