Chinaunix

标题: install qt3 on xubuntu7.10 [打印本页]

作者: xiami007    时间: 2008-04-22 20:06
标题: install qt3 on xubuntu7.10
1. reference guide:
qt4环境:libqt4-core qt4-designer qt4-dev-tools qt4-qtconfig libqt4-dev libqt4-gui libqt4-debug libqt4-sql
libboost环境:libboost-serialization-dev 等等
设置环境变量: export LD_LIBRARY_PATH=/usr/local/lib
export LD_RUN_PATH=/usr/local/lib
在终端下export当然只是临时的
你可以在~/.bashrc或者~/.bash_profile中加入export语句,
前者在每次登陆和每次打开shell都读取一次,后者只在登陆时读取一次
我的习惯是加到.bashrc中
Necessary if qt3 is default on your system ***
export QTDIR=/usr/include/qt4
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
from:     
http://jilujilu.ycool.com/post.1851749.html
2. step by step
(1)install the packages
sudo apt-getinstall
libqt3-mt-dev qt3-apps-dev  qt3-assistant qt3-designer qt3-dev-tools qt3-doc libqt3-mt-mysql qt3-examples qt3-linguist qt3-qtconfig
(2)set the qt3 path
edit ~/.bashrc
add follow lines at the end :
export QTDIR=/usr/share/qt3/include
export PATH=$/usr/share/qt3/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$/usr/share/qt3/lib
(3)build the program
enter the derectory :
qmake -project
qmake
make
error occurs
solution:
replace qmake with sudo qmake LIBS+=-lqt-mt
(4)run
./qt

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67203/showart_573012.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2