首页| 论坛| 消息

标题:cannt find -lqt?
作者:donylnx
日期:2006-08-03 10:41
内容:

我的qte程序昨晚编译可以了,可是今天开机就不编译出错,我重新指定了一下QTDIR的路径,就显示
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I/host/qt-2.3.7/include -o imagefip.o imagefip.cpp
/host/qt-2.3.7/bin/moc showimg.h -o moc_showimg.cpp
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I/host/qt-2.3.7/include -o moc_showimg.o moc_showimg.cpp
/host/qt-2.3.7/bin/moc imagetexteditor.h -o moc_imagetexteditor.cpp
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I/host/qt-2.3.7/include -o moc_imagetexteditor.o moc_imagetexteditor.cpp
/host/qt-2.3.7/bin/moc imagefip.h -o moc_imagefip.cpp
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I/host/qt-2.3.7/include -o moc_imagefip.o
moc_imagefip.cpp
g++-o showimg main.o imagetexteditor.o showimg.o imagefip.o moc_showimg.o moc_imagetexteditor.o moc_imagefip.o-L/host/qt-2.3.7/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make: *** Error 1
这个cannot find -lqt到底是什么问题,我总是会遇到这个问题,能帮我解答一下吗?非常感谢!


#1 [donylnx 08-03 10:45]
看来是我的QTDIR路径有问题,我把他开始指向qt-2.3.7就出错,后来指向qt-2.3.2就可以通过了
#2 [donylnx 08-03 10:58]
我就搞不懂了,我的例子放在两个地方,为什么一个编译就要指定路径到qt-2.3.2,而另一个要是用这个路径就是cannot find -lqt,要再指定为qt-2.3.7,这个才可以编译通过,这到底是怎么回事呢,好胡涂呢
#3 [laowang 08-03 11:06]
你好,能传给我QT/e2.3.7 和qt-x11-2.3.2资料吗??我的qq:583399827。
#4 [shiroki 08-03 14:28]
同学,你的2.3.2是qt-x11, 2.3.7是qt embedded好不好
在qte里库的名字不是qt, 是qte
#5 [donylnx 08-03 21:55]
我是指的这两个文件呀,为什么我有的时候换一个路径就可以编译成功了,不然就显示那个提示。还有那位朋友,我是新手哪有什么你说的资料呀,我也在找呢,我只是装软件的程度,不好意思了

<< 1 2 >> (1/2)

回复 发表
主题 版块