今天在安装qvfb1.1时,提示如下问题
checking for Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
查看config.log后,发现其无法找到qt的头文件,手动指定到我下载的qt4.8.4后,sudo ./configure --with-qt-dir=/usr/local/Trolltech/Qt-4.8.4 --with-qt-includes=/usr/local/Trolltech/Qt-4.8.4/include --with-qt-libraries=/usr/local/Trolltech/Qt-4.8.4/lib ,还是提示错误。
根据网友提示,尝试重新下载qt3.+版本的头文件和相关文件
先安装qt3-dev-tools-embedded , libqt3-headers and libqt3-mt-dev
如果没有的话,会出错 Can't find X includes 以及error: Qt (>= Qt 3.0.3) (headers and libraries) not found 等错误
sudo apt-get install qt3-dev-tools-embedded
sudo apt-get install libqt3-headers libqt3-mt-dev
但是还是提示错误。最后,重新指定目录 ./configure --with-qt-includes=/usr/include/qt3 --with-qt-lilbraries=/usr/lib/qt3
问题解决。
这种方法可以安装qvfb。但是我安装完毕后,发现里面总会有两个鼠标飘来飘去的。难道这个版本有问题?又回过头来重新安装了qvfb4.8.4中自带的qvfb.可以直接到qt-4.8.4/tools/qvfb下qmake ,make, install.这个版本里不会出现鼠标漂的问题。