学习Gnome Ubuntu下安装其他软件

系统 Linux
虽然本机装的是Gnome Ubuntu,但也可以开发Qt程序,如果用一般的下载再编译Qt4,会弄很长的一段时间的。所以采用apt-get的方法安装Qt4。

学习Gnome时,你可能会遇到Gnome Ubuntu问题,这里将介绍Gnome Ubuntu问题的解决方法,在这里拿出来和大家分享一下。Ubuntu 包含了非常好的翻译和容易使用的架构,这些由自由软件社团将不断的提供, 将尽可能的使大多数人方便使用 Ubuntu 。

Gnome Ubuntu下安装Kdevelop

有两种方式进行安装:

1.Gnome Ubuntu使用终端-get可:使用apt以很容易的得到KDevelop,具体如下:(以KDE为例) 1). apt-get build-dep gcc 2). apt-get install kdevelop3 3). 如果你无法获取这些软件包的信息,可以尝试修改/etc/apt/sources.lst

2.打开新立得软件包管理器1).查找KDevelop,在结果中当然是勾选KDevelop,还有KDevelop系列里面那个带"-dev"后缀的包,当然你可以不勾2).装好前面的包后安装如下的包:
automake
autoconf
g++
libtool
cmake

Gnome Ubuntu安装qt4

虽然本机装的是Gnome Ubuntu,但也可以开发Qt程序,如果用一般的下载再编译Qt4,会弄很长的一段时间的。所以采用apt-get的方法安装Qt4。
运行:
$ sudo apt-get install libqt4-dev libqt4-debug libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig

编写一个示例程序:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{QApplication app(argc, argv);
QPushButton hello("Hello, man!"); hello.resize(100, 30);
hello.show(); return app.exec();}

然后依次运行:
$ qmake -project
$ qmake
$ make
$ ./项目名

如下所示:
isp@hitisp:~/qtsrc$ vim QtHello.cpp
isp@hitisp:~/qtsrc$ qmake -project
isp@hitisp:~/qtsrc$ qmake
isp@hitisp:~/qtsrc$ make
运行结果是一个只有一个按钮的标题为项目名的小窗口。、Gnome Ubuntu下安装qt4

【编辑推荐】

  1. 具体介绍更简单易用的Ubuntu操作系统
  2. 光盘安装Ubuntu 9.10系统比Win7NB
  3. 叙述Ubuntu upstart进程管理
  4. 浅析详解Ubuntu 9.10新版本发布
  5. 概括论述Ubuntu操作系统推出软件的产品
责任编辑:佚名 来源: CSDN
相关推荐

2009-12-31 15:13:22

Ubuntu GNOM

2011-09-02 17:25:37

Ubuntu11.04gnome3

2011-09-02 17:12:42

UbuntuGNOME 3

2011-01-10 10:29:27

Ubuntu 10.1Gnome-Shell

2011-10-11 10:53:29

Ubuntu 11.1Gnome 3.2

2014-03-12 09:58:36

Ubuntu 13.1Gnome 3.10

2011-09-06 11:32:13

UbuntuGnome Subti

2023-03-13 11:12:28

UbuntuLinuxIDE

2022-05-23 15:56:32

UbuntuLinux

2014-06-23 09:43:01

Ubuntu GNOM

2011-08-29 16:50:14

UbuntuGnome

2011-09-08 10:13:04

UbuntuWammu

2022-11-24 12:00:20

UbuntuLinux

2011-03-14 13:07:23

Ubuntu安装LAMP

2011-02-25 14:35:06

ubuntuproftp安装

2011-01-18 18:21:44

Ubuntu安装Thunderbird

2011-03-03 14:47:35

2011-03-03 09:04:25

2011-03-03 14:47:35

2011-09-01 09:14:49

UbuntuLaunchpad
点赞
收藏

51CTO技术栈公众号