Comments (5)
You should pass these parameters to cmake so it will build it properly.
cmake -DWITH_AUDIO_HASH=1 -DWITH_VIDEO_HASH=1 .
from phash.
The example still doesn't work:
gcc test_dctvideohash.cpp
test_dctvideohash.cpp: In function 'int main(int, char**)':
test_dctvideohash.cpp:57:46: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'ulong64 {aka long unsigned int}' [-Wformat=]
printf("hash1[%d]=%llx\n", i, hash1[i]);
~~~~~~~~^
/tmp/ccRpeyyA.o: In function `main':
test_dctvideohash.cpp:(.text+0xad): undefined reference to `ph_dct_videohash'
test_dctvideohash.cpp:(.text+0x145): undefined reference to `ph_dct_videohash'
test_dctvideohash.cpp:(.text+0x1a4): undefined reference to `ph_dct_videohash_dist'
collect2: error: ld returned 1 exit status
from phash.
I am not sure why you are trying to compile it manually. If you do then you need to add all the correct gcc arguments and linker flags. cmake will already compile all the example apps in the examples dir.
from phash.
Thanks for the hint. I got it running
from phash.
add an example :
g++ [file].cpp -o [output] -lpHash
from phash.
Related Issues (20)
- pHash.org Version Outdated
- cmake does not check for libtiff HOT 1
- Running make fails when building examples/test_dctvideohash.cpp HOT 1
- Using pHash data from an older version of pHash w/the current version HOT 1
- build issue HOT 1
- Add support for HEIF/HEIC images via libheif
- Doc for ph_hamming_distance is wrong
- bindings / PHP build HOT 2
- Radial hash ignores gamma parameter? HOT 1
- No ConvNet (pHashML) Documentation HOT 6
- Rounding logic looks strange HOT 1
- 'FORCE' settings in CMakeLists.txt? HOT 1
- 希望ph_dct_imagehash接口能支持传图片的二进制流 HOT 1
- Wrong phash value for 195x64 images HOT 1
- 请教这几个函数问题,谢谢 HOT 1
- pHash does not work with MKV and WebM files HOT 1
- _ph_image_digest function cimg exception when alpha channel present
- Unable to create .pylib file with Mac Sonoma.
- Invalid argument(s): Failed to load dynamic library 'phash.so': dlopen failed: cannot locate symbol "TIFFSetWarningHandler" referenced by "/data/app/~~dsq_8wJXYPiEvZhp0h9C8w==/com.example.tcg-n4L1yUnzT6xjvaZKt_iDZA==/lib/arm64/phash.so"...
- Build instructions need updating HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phash.