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

裝了一天了,各種問題啊,安裝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不同,沒有文件輸入是不會顯示出框圖的)
發佈了49 篇原創文章 · 獲贊 13 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章