免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 589 | 回复: 0
打印 上一主题 下一主题

install qt3 on xubuntu7.10 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-22 20:06 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP