这是一些(可能)非常简单的问题:我正在尝试将感知散列库 pHash 与 Ubuntu 11.10 一起使用。我已经安装了ffmpeg,顺便说一句,这就是我所做的:
sudo apt-get install libphash0
sudo apt-get install libphash0-dev
然后尝试编译这个程序:
#include <iostream>
#include <pHash.h>
using namespace std;
int main()
{
ulong64 myhash=0;
ph_dct_imagehash("test.jpg", myhash);
cout<<myhash<<endl;
}
编译时,它只是打印出来:
undefined reference to `ph_dct_imagehash'
有什么建议吗?我应该怎么办?提前致谢!
马泰奥·蒙蒂