主题 : 安装qt creator,运行时出错,提示无libstdc++.so.6??? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 18441
精华: 0
发帖: 45
金钱: 225 两
威望: 45 点
综合积分: 90 分
注册时间: 2010-04-09
最后登录: 2013-08-20
楼主  发表于: 2010-04-21 10:05

 安装qt creator,运行时出错,提示无libstdc++.so.6???

我现在linux下安装了qt-x11和qt-embedded,并且qt designer运行正常,编译qt程序正常,由于QT designer只能做ui。我装的4.5.3的版本不能生成.cpp文件,所以我打算在装QT creator,方便开发,QT creator安装好后在桌面生成qt creator快捷方式,但是双击没反应,在安装bin目录下直接运行qtcreator有错:
./qtcreator.bin: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
提示说找不到库libstdc++.so.6
我的编译器是4.3.2的,然后我把/usr/local/arm/4.3.2/arm-none-linux-gnueabi/armv4t/usr/lib/libstdc++.so.6和它的连接文件libstdc++.so.6.10复制到qtcreator的lib文件夹下,运行时仍然出错,不知道是什么原因,有哪位前辈知道的吗?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-04-21 10:44
大哥,Qt Creator是在PC上运行的,libstdc++.so.6也得是for x86 PC的吧。/usr/local/arm/4.3.2/arm-none-linux-gnueabi/armv4t下面的东西是给ARM用的,和PC没有关系。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 18441
精华: 0
发帖: 45
金钱: 225 两
威望: 45 点
综合积分: 90 分
注册时间: 2010-04-09
最后登录: 2013-08-20
2楼  发表于: 2010-04-21 11:06

 回 1楼(kasim) 的帖子

终于等来您了,呵呵
恩,明白了,这个不能用交叉编译里面的libstdc了,是我的linux系统下少libstdc这个库吧?
看了下,我的/usr/lib下面有libstdc++.so.5的,因为用的是redhat9,所以很麻烦
谢谢版主啊,刚接触这个,以后还请版主多多照顾啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-04-21 11:48

 回 2楼(songfangfang) 的帖子

抱歉,我没有试过在redhat 9上安装6.x版本的libstdc++.so。你可以试试能不能从网上下载一个对应的RPM包来安装或者自己从源代码编译安装(估计这个有点难度)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 18441
精华: 0
发帖: 45
金钱: 225 两
威望: 45 点
综合积分: 90 分
注册时间: 2010-04-09
最后登录: 2013-08-20
4楼  发表于: 2010-04-21 14:45

 回 3楼(kasim) 的帖子

恩,是的,现在redhat早就不更新了,安装库的rpm包会带来意想不到的错误,用redhat9开发问题很多,我现在打算换fedoral12
,uboot、内核和文件系统都是自己移植的,在上面开发会遇到不少问题,呵呵,想多学点,自己做系统了解的多点,现在就是做驱动,然后再上面做qt开发,做个交互界面,希望总版主多多”关注“我啊,呵呵~~~
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2010-04-21 14:49

 回 4楼(songfangfang) 的帖子

如果你提的问题对别人有价值,自然会有人关心你
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."