LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 906|回复: 7

请问Ubuntu的KDE的开发库默认是哪个目录下?

[复制链接]
发表于 2005-6-6 14:29:46 | 显示全部楼层 |阅读模式
我用sudo apt-get install kdebase 之后然后再编译程序,还是提示错误
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

是乎是提示你要指定KDE Header的目录,但是我不知道装在哪个目录,希望知道的朋友指点一下
谢谢!! :ask
发表于 2005-6-6 17:56:04 | 显示全部楼层
你这样并没有安装开发库

你可以这样

用这个

sudo apt-get build-dep  kate  

然后就会装上编译 kde 程序所需要的东西, gcc , make , 开发库等
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-6 19:29:56 | 显示全部楼层
baijiazi@baijiazi:~/tools$ sudo apt-get build-dep kdate
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
E: 您必须在您的 sources.list 输入一些“软件包源”的 URL


需要一个源,我用的是Ubuntu,源
deb http://archive.ubuntu.org.cn/ubuntu hoary main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu hoary-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu hoary-updates main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn ubuntu.org.cn main universe multiverse restricted
deb http://archive.ubuntu.org.cn/backports hoary-backports main universe multiverse restricted
deb http://archive.ubuntu.org.cn/backports hoary-extras main universe multiverse restricted
我添加的是这个源,还需要添加其他的源吗
回复 支持 反对

使用道具 举报

发表于 2005-6-6 23:10:54 | 显示全部楼层
你得加上 deb-src
可以把你现在的复制一份,再把  deb 换成 deb-src

例子:

  1. # 原先的
  2. deb http://archive.ubuntu.org.cn/ubuntu hoary main restricted universe multiverse
  3. deb http://archive.ubuntu.org.cn/ubuntu hoary-security main restricted universe multiverse
  4. deb http://archive.ubuntu.org.cn/ubuntu hoary-updates main restricted universe multiverse
  5. deb http://archive.ubuntu.org.cn/ubuntu-cn ubuntu.org.cn main universe multiverse restricted
  6. deb http://archive.ubuntu.org.cn/backports hoary-backports main universe multiverse restricted
  7. deb http://archive.ubuntu.org.cn/backports hoary-extras main universe multiverse restricted

  8. # 另外加上下面的 deb-src
  9. deb-src http://archive.ubuntu.org.cn/ubuntu hoary main restricted universe multiverse
  10. deb-src http://archive.ubuntu.org.cn/ubuntu hoary-security main restricted universe multiverse
  11. deb-src http://archive.ubuntu.org.cn/ubuntu hoary-updates main restricted universe multiverse
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-7 10:09:16 | 显示全部楼层
如果GNOME下装了基本的编辑工具 (build-essential),那跟你们说的有什么不同?
回复 支持 反对

使用道具 举报

发表于 2005-6-7 11:03:01 | 显示全部楼层
你认为 Gnome 的开发库 跟 KDE 的开发库相同么  ?

开发环境不仅仅是编译器
回复 支持 反对

使用道具 举报

发表于 2005-6-7 11:19:46 | 显示全部楼层
Post by jhuangjiahua
你认为 Gnome 的开发库 跟 KDE 的开发库相同么  ?

开发环境不仅仅是编译器


我在怀疑,所以在问,多谢释疑。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-7 11:38:47 | 显示全部楼层
嗯,已经可以正常编译,谢谢。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表