qvfb2的安装,在ubuntu12.4上安装成功

来源:互联网 发布:老司机开车 知乎 编辑:程序博客网 时间:2024/04/30 14:32

装了一天了,各种问题啊,安装qvfb2出现了这个问题:

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.

解决方法:
(因为需要qt-3.3作支持,所以需要先安libqt3-mt,libqt3-mt-dev,下载qt-devel-3.3.8-4.fc7.i386.rpm,然后用alien转为deb,再用dpkg -i --force-overwrite 来安装此包)
sudo apt-get install libqt3-mt       (一直是找不到包,后来重新换个ubuntu版本才好)
sudo apt-get install libqt3-mt-dev
sudo apt-get install alien
sudo alien qt-devel-3.3.8-4.fc7.i386.rpm
dpkg -i --force-overwrite qt-devel-3.3.8-4.fc7.i386.deb
(开始安qvfb)
cd qvfb2-2.0
./configure --with-qt-includes=/usr/lib/qt-3/include --with-qt-libraries=/usr/lib/qt-3/lib --with-qt-dir=/usr/lib/qt-3
sudo make
sudo make install
(qvfb2与1不同,没有文件输入是不会显示出框图的)
原创粉丝点击