ubuntu下安装atk-2.0.0使用make命令出错

lgm277531070 2011-09-15 05:58:11
http://ftp.gnome.org/pub/gnome/sources/atk/2.0/下下载了atk,使用.configure命令通过,但是使用make命令时报以下错误:

atktext.c:1428: error: expected declaration specifiers or ‘...’ before ‘atk_text_range’
atktext.c:1428: error: expected declaration specifiers or ‘...’ before ‘atk_text_range_copy’
atktext.c:1429: error: expected declaration specifiers or ‘...’ before ‘atk_text_range_free’
atktext.c:1429: warning: return type defaults to ‘int’
atktext.c: In function ‘G_DEFINE_BOXED_TYPE’:
atktext.c:1428: error: parameter name omitted
atktext.c:1429: error: expected ‘{’ at end of input
make[3]: *** [atktext.lo] Error 1
make[3]: Leaving directory `/home/lgmtest/下载/atk-2.0.0/atk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lgmtest/下载/atk-2.0.0/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lgmtest/下载/atk-2.0.0'
make: *** [all] Error 2

这是啥错误哦,,,求解!
...全文
546 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
qintel 2011-09-27
  • 打赏
  • 举报
回复

用 "apt-cache search 关键字 ..."试一下了,结果可能比较多,只有一个一个看一下了。
lgm277531070 2011-09-16
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 lgxwqq111 的回复:]
atktext.c: In function ‘G_DEFINE_BOXED_TYPE’:
atktext.c:1428: error: parameter name omitted
atktext.c:1429: error: expected ‘{’ at end of input

去看下1428和1429行代码,可能是少了括号的

用apt-cache search atk试试……
[/Quote]
搜索了下,有好多啊

gobject-introspection-repository - Introspection data for several GNOME related libraries
libatk1.0-0 - The ATK accessibility toolkit
libatk1.0-data - Common files for the ATK accessibility toolkit
libatk1.0-dbg - The ATK libraries and debugging symbols
libatk1.0-dev - Development files for the ATK accessibility toolkit
libatk1.0-doc - Documentation files for the ATK toolkit
libgail-gnome-dbg - libgail-gnome library and debugging symbols
libgail-gnome-dev - Development files of libgail-gnome
libgail-gnome-module - GNOME Accessibility Implementation Module for GnomeUI/BonoboUI
libgtk2.0-cil - CLI binding for the GTK+ toolkit 2.12
python-gtk2-doc - Python bindings for the GTK+ widget set - documentation
fetchexc - Fetches email from Microsoft Exchange servers
gfc-examples - GTK+ Foundation Classes Examples
guile-gnome2-gtk - Guile bindings for GTK+, libglade, Pango and ATK
libgfcui-2.0-0c2a - GTK+ Foundation Classes UI - shared libraries
libgfcui-2.0-0c2a-dbg - GTK+ Foundation Classes UI - debug symbols
libgfcui-dev - GTK+ Foundation Classes UI - development files
libgfcui-doc - GTK+ Foundation Classes UI - API reference documentation
liblua5.1-gnome-0 - GNOME bindings for the Lua language version 5.1
maatkit - Command-line utilities for MySQL
python-ocempgui - graphical user interface toolkit providing widgets for PyGame
vim-syntax-gtk - Syntax files to highlight GTK+ keywords in vim
xkbset - Small utility to change the AccessX settings of XKEYBOARD
libgail-common - GNOME Accessibility Implementation Library -- common modules
libgail-dev - GNOME Accessibility Implementation Library -- development files
libgail-doc - documentation files of the Gail library
libgail18 - GNOME Accessibility Implementation Library -- shared libraries
libatk1-ruby - ATK bindings for the Ruby language
libatk1-ruby1.8 - ATK bindings for the Ruby language
libatk1-ruby1.8-dbg - ATK bindings for the Ruby language


还有,代码的格式我看了,没有缺胳膊少腿的,当然不排除语法其他问题了 ,我现在就想知道使用apt-get install安装 后面加什么东东,上面是使用apt-cache search atk搜索出来的哦
freetstar 2011-09-16
  • 打赏
  • 举报
回复
atktext.c: In function ‘G_DEFINE_BOXED_TYPE’:
atktext.c:1428: error: parameter name omitted
atktext.c:1429: error: expected ‘{’ at end of input

去看下1428和1429行代码,可能是少了括号的

用apt-cache search atk试试,看能不能搜索到
lgm277531070 2011-09-16
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 ch_984326013 的回复:]
引用 3 楼 lgm277531070 的回复:
回一楼,我可没有怀疑过人家源码的念头啊
回二楼,问题是,我想用apt-get 方式安装,但是不知道应该写什么来
写 sudo apt-get install atk ,提示找不到atk啊

第一、我们要有怀疑的精神!
第二、找不到,我们还有google+百度呢。http://www.linuxdiyf.com/viewarticle.p……
[/Quote]

主要是我对c不太熟,所以我没资格去怀疑人家c的代码 呵呵
huarc 2011-09-15
  • 打赏
  • 举报
回复
不怀疑的话,估计此包与LINUX版本不符了
ch_984326013 2011-09-15
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 lgm277531070 的回复:]
回一楼,我可没有怀疑过人家源码的念头啊
回二楼,问题是,我想用apt-get 方式安装,但是不知道应该写什么来
写 sudo apt-get install atk ,提示找不到atk啊
[/Quote]
第一、我们要有怀疑的精神!
第二、找不到,我们还有google+百度呢。http://www.linuxdiyf.com/viewarticle.php?id=157374
lgm277531070 2011-09-15
  • 打赏
  • 举报
回复
回一楼,我可没有怀疑过人家源码的念头啊
回二楼,问题是,我想用apt-get 方式安装,但是不知道应该写什么来
写 sudo apt-get install atk ,提示找不到atk啊
qintel 2011-09-15
  • 打赏
  • 举报
回复
推荐使用apt-get 安装,你只是安装一个应用,难道还去改人家的源码。
Linux下的应用多,兼容性也差,有源最好apt安装。
帅得不敢出门 2011-09-15
  • 打赏
  • 举报
回复
atktext.c:1428: error: parameter name omitted
atktext.c:1429: error: expected ‘{’ at end of input

关键是 atktext.c中的1428, 1429两行代码, 贴出来看看.

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧