|
发表于 2005-1-29 12:31:44
|
显示全部楼层
下载qt free版本(www.trolltech.com找个快的链接下载qt-x11-free-3.3.3)
1,# tar jxvf qt-x11-free-3.3.3.tar.bz2
2,编译安装
./configure -prefix /opt/qt-3.1.2 -qt-gif -system-libpng \
-system-libmng -system-zlib -system-libjpeg -no-g++-exceptions \
-thread &&
make &&
make install &&
ln -sfn /opt/qt-3.1.2 /opt/qt &&
ln -s /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt.so &&
cp -r doc/man /opt/qt/doc &&
cp -r examples /opt/qt/doc
然后更新配置:
cat >> /etc/ld.so.conf << "EOF"
# Begin qt addition to /etc/ld.so.conf
/opt/qt/lib
# End qt addition
EOF
ldconfig |
|