install qt on ubuntu 14.04

forked from : http://www.cppblog.com/flyonok/archive/2007/12/27/39731.html


Qt install on ubuntu

I’ve received a few queries about how to compile Qt programs in Ubuntu, so I wrote a short tutorial on compiling such a program in Qt.
Qt Logo

First make sure you remove all the qt3 dev tools so that your program isn’t compiled using qt3. It is safe and even recommended to leave the qt3 libraries installed since they may be required for other packages.

$ sudo apt-get remove qt3-dev-tools

Install the qt4 libraries and tools:


$ sudo apt-get install libqt4-core libqt4-gui libqt4-sql
$ sudo apt-get install libqt4-qt3support libqt4-dev qt4-dev-tools

If you’re a developer, you’ll want the gui tools that make development much easier.

$ sudo apt-get install qt4-designer qt4-qtconfig qt4-doc

This will install designer, assistant, and qtconfig.

Now that all the packages are installed, you should be able to compile programs. Many times the program you want to download will reside in a repository (usually CVS or Subversion) so you’ll need to install these packages.

$ sudo apt-get install subversion cvs

Download a program and try it out (or use the program you were having trouble with that caused you to come here).

$ svn co http://svn.jasonandshawnda.com/CulinaryManagement

Compile the program:


$ cd CulinaryManagement
$ qmake
$ make




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值