免费注册 查看新帖 |

Chinaunix

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

glibc相关-实让人头疼! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-16 19:29 |只看该作者 |倒序浏览
fedora11 非虚拟机 ,
qte4.5.3 arm
glibc 2.10.1

程序简单,如下
#include<QtGui/QApplication>
#include <QtGui/QPushButton>
int main (int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton *button=new QPushButton("Quit");
QObject::connect(button,SIGNAL(clicked()),
                    &app,SLOT(quit()));
button->show();
return app.exec();
}

qmake -project
qmake
make

报错:
……
……
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtGui.so: undefined reference to `fgets@GLIBC_2.0'
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtCore.so: undefined reference to `fstatfs@GLIBC_2.0'
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtGui.so: undefined reference to `tolower@GLIBC_2.0'
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtCore.so: undefined reference to `nanosleep@GLIBC_2.0'
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtNetwork.so: undefined reference to `gai_strerror@GLIBC_2.1'
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/lib/libQtGui.so: undefined reference to `strlen@GLIBC_2.0'
……
……


我实在没办法,曾试着yum upgrade *
呵呵,如下:
下载软件包:
http://ftp.riken.jp/Linux/fedora ... -2.10.2-1.i686.rpm: [Errno 12] Timeout: <urlopen error timed out>
尝试其他镜像.
http://ftp.jaist.ac.jp/pub/Linux ... -2.10.2-1.i686.rpm: [Errno 12] Timeout: <urlopen error timed out>
尝试其他镜像.
http://mirror.cse.iitk.ac.in/fed ... -2.10.2-1.i686.rpm: [Errno 12] Timeout: <urlopen error timed out>
尝试其他镜像.
^C
Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

^C^C
搜索之,不解
请各位帮帮忙!!

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2009-12-16 19:52 |只看该作者
QT
也实在让人头疼

论坛徽章:
0
3 [报告]
发表于 2009-12-16 20:05 |只看该作者
qt现在不足畏惧,嵌入式的部分各个版本,兼容等问题才令人头疼!!

论坛徽章:
0
4 [报告]
发表于 2009-12-16 21:51 |只看该作者
请检查下你编译qte4.5.3的交叉编译工具的glib是和glibc 2.10.1一致的吗!

论坛徽章:
0
5 [报告]
发表于 2009-12-16 22:06 |只看该作者
[root@localhost /]# rpm -qi glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.10.1                            Vendor: Fedora Project
Release     : 5                             Build Date: 2009年08月19日 星期三 23时02分46秒
Install Date: 2009年11月11日 星期三 14时42分14秒      Build Host: x86-5.fedora.phx.redhat.com
Group       : System Environment/Libraries   Source RPM: glibc-2.10.1-5.src.rpm
Size        : 14052196                         License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Signature   : RSA/SHA1, 2009年08月20日 星期四 11时31分09秒, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : http://sources.redhat.com/glibc/
Summary     : The GNU libc libraries
Description :
glibc 软件包包括在系统上被多个程序使用的标准库。
为了要节省磁盘空间和内存,以及简化升级进程,
公用的系统编码被保留在一处,在程序间共享。这个
软件包包括几组最重要的共享库:标准的 C 库和标准
的数学库。没有这两个库,Linux 系统将无法运行。

////////////////////////////////////////////////////////
不知楼上指的是?

论坛徽章:
0
6 [报告]
发表于 2009-12-17 08:24 |只看该作者
locate glib
……
……
/usr/include/glib-2.0/glib/galloca.h
/usr/include/glib-2.0/glib/garray.h
/usr/include/glib-2.0/glib/gasyncqueue.h
/usr/include/glib-2.0/glib/gatomic.h
/usr/include/glib-2.0/glib/gbacktrace.h
/usr/include/glib-2.0/glib/gbase64.h
/usr/include/glib-2.0/glib/gbookmarkfile.h
/usr/include/glib-2.0/glib/gcache.h
/usr/include/glib-2.0/glib/gchecksum.h
/usr/include/glib-2.0/glib/gcompletion.h
……
……

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
7 [报告]
发表于 2009-12-17 09:45 |只看该作者
原帖由 chengyake 于 2009-12-17 08:24 发表
locate glib
……
……
/usr/include/glib-2.0/glib/galloca.h
/usr/include/glib-2.0/glib/garray.h
/usr/include/glib-2.0/glib/gasyncqueue.h
/usr/include/glib-2.0/glib/gatomic.h
/usr/include/g ...

glib和glibc不一样
glib和glibc有很大的区别,非常明显

论坛徽章:
0
8 [报告]
发表于 2009-12-17 12:07 |只看该作者
今天上午受到系统升级,接受后
现如下:
[root@localhost 0shiyan]# rpm -qi glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.10.2                            Vendor: Fedora Project
Release     : 1                             Build Date: 2009年11月20日 星期五 19时52分57秒
Install Date: 2009年12月17日 星期四 09时55分09秒      Build Host: xenbuilder4.fedora.phx.redhat.com
Group       : System Environment/Libraries   Source RPM: glibc-2.10.2-1.src.rpm
Size        : 14016324                         License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Signature   : RSA/8, 2009年11月22日 星期日 02时30分16秒, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : http://sources.redhat.com/glibc/
Summary     : The GNU libc libraries
Description :
glibc 软件包包括在系统上被多个程序使用的标准库。
为了要节省磁盘空间和内存,以及简化升级进程,
公用的系统编码被保留在一处,在程序间共享。这个
软件包包括几组最重要的共享库:标准的 C 库和标准
的数学库。没有这两个库,Linux 系统将无法运行。

[root@localhost 0shiyan]# rpm -qi glib
Name        : glib                         Relocations: (not relocatable)
Version     : 1.2.10                            Vendor: Fedora Project
Release     : 32.fc11                       Build Date: 2009年04月21日 星期二 20时40分08秒
Install Date: 2009年12月17日 星期四 08时32分15秒      Build Host: x86-3.fedora.phx.redhat.com
Group       : System Environment/Libraries   Source RPM: glib-1.2.10-32.fc11.src.rpm
Size        : 347977                           License: LGPLv2+
Signature   : RSA/8, 2009年05月13日 星期三 20时48分18秒, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : http://www.gtk.org/
Summary     : A library of handy utility functions
Description :
GLib is a handy library of utility functions. This C library is
designed to solve some portability problems and provide other useful
functionality that most programs require.

这是系统自动更新的结果。
却仍不行,
这个版本怎么匹配?,必须相同吗?
请说详细些

论坛徽章:
0
9 [报告]
发表于 2009-12-17 12:45 |只看该作者
细查到EABI版本问题
头大了!!

论坛徽章:
0
10 [报告]
发表于 2009-12-17 14:51 |只看该作者
从新编了个低版本的arm-linux-gcc 工具,现在还好,编i通过了,就是生成的文件不对头
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP