Git Product home page Git Product logo

Comments (5)

aetilius avatar aetilius commented on August 17, 2024

You should pass these parameters to cmake so it will build it properly.
cmake -DWITH_AUDIO_HASH=1 -DWITH_VIDEO_HASH=1 .

from phash.

Avagenzo avatar Avagenzo commented on August 17, 2024

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.

aetilius avatar aetilius commented on August 17, 2024

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.

Avagenzo avatar Avagenzo commented on August 17, 2024

Thanks for the hint. I got it running

from phash.

kennykarnama avatar kennykarnama commented on August 17, 2024

add an example :
g++ [file].cpp -o [output] -lpHash

from phash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.