主题 : cannot find -lqt-mt ??? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 282
精华: 0
发帖: 9
金钱: 90 两
威望: 9 点
综合积分: 18 分
注册时间: 2008-03-12
最后登录: 2008-06-06
楼主  发表于: 2008-03-17 20:20

 cannot find -lqt-mt ???

图片:
为什么我在编译我的一个程序时候出现这个问题呢?
在我自己写的makefile里面有
我分别是
qmake -project  通过
qmake xxxx.pro  通过
make  出错了

在example hello 例子中的makefile文件里面没有这个lqt-mt
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-03-18 12:05
-lqt-mt 的意思是需要g++需要link libqt-mt.so, qtopia里面没有这个shared library吗?
"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: 282
精华: 0
发帖: 9
金钱: 90 两
威望: 9 点
综合积分: 18 分
注册时间: 2008-03-12
最后登录: 2008-06-06
2楼  发表于: 2008-03-18 12:28
找不到这个咯 很是郁闷
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-03-18 13:14
那就自己编一个放进去咯
"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: 282
精华: 0
发帖: 9
金钱: 90 两
威望: 9 点
综合积分: 18 分
注册时间: 2008-03-12
最后登录: 2008-06-06
4楼  发表于: 2008-03-18 19:25
请问怎么写呢?新手不会,诚心请教楼上
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2008-03-18 20:02
关于这个lib,参考http://lists.trolltech.com/qt-interest/2000-11/thread00136-0.html

这个libqt-mt.so应该是包含在支持multithread的qtopia里的(如果Makefile没有写错的话, 应该在/opt/FriendlyARM/QQ2440/x86-qtopia/qt/lib目录下),建议你按照手册附录1里的步骤重新设置一下开发环境,如果还有问题,再和我讨论

[ 此贴被kasim在2008-03-18 20:09重新编辑 ]
"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: 282
精华: 0
发帖: 9
金钱: 90 两
威望: 9 点
综合积分: 18 分
注册时间: 2008-03-12
最后登录: 2008-06-06
6楼  发表于: 2008-03-28 10:16
版主:我把lqt-mt修改为lqte编译就可以通过 但是运行时候缺乏libqte.so.2这个文件 咋办呢?
我按照手册上的做法都无法正确
级别: 新手上路
UID: 282
精华: 0
发帖: 9
金钱: 90 两
威望: 9 点
综合积分: 18 分
注册时间: 2008-03-12
最后登录: 2008-06-06
7楼  发表于: 2008-03-28 11:26
在自动生成的makefile文件里还有
INCPATH = -I/usr/lib/qt-3.1/mkspecs/default

Makefile:hello.pro /usr/lib/qt-3.1/mkspecs/default/qmake.conf

根据这2行是不是可以判断我PC上用的还是系统自带的那个版本?该如何修改呢?我已经按照手册上的操作了 可还是不行
[ 此贴被luckylq3在2008-03-28 14:21重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2008-03-28 21:16
引用第6楼luckylq3于2008-03-28 10:16发表的  :
版主:我把lqt-mt修改为lqte编译就可以通过 但是运行时候缺乏libqte.so.2这个文件 咋办呢?
我按照手册上的做法都无法正确


编译能通过是因为ld能找到libqte.so, 但从你运行的时候看这个lib没有包含在文件系统的image里。
至于qtopia的编译环境,因为我PC上跑的Ubuntu 8.04,没办法编译qt/x11, 也没办法编译hello的示例程序,所以不能确定友善之臂提供的环境是否有问题。
"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."