QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2001|回复: 2

请问,关于makeqpf

[复制链接]
发表于 2005-9-29 12:57:55 | 显示全部楼层 |阅读模式
要把makeqpf弄出来是不是这样:?
[root@denixleen makeqpf]# tmake makeqpf.pro > Makefile
[root@denixleen makeqpf]# make
g++  -o makeqpf main.o   -L/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
main.o(.text+0x1152): In function `MakeQPF::staticMetaObject()':
: undefined reference to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int, QMetaData*, int, QClassInfo*, int)'
collect2: ld returned 1 exit status
make: *** [makeqpf] 错误 1
这个怎么弄呢?
 楼主| 发表于 2005-9-29 16:17:50 | 显示全部楼层
我这样做不知道对不对:
        在qt/e 目录下
        ./configure -qconfig makeqpf -debug -qconfig qpe -qvfb -depths 4,8,16,32
-keypad-mode -system-jpeg -gif
        然后 make sub-src,make,make -C tools/makeqpf
不知道这样对不对? 我现在正在试,一下在来问。。。
补充一下,在这之前,我的qtopia已经交叉编译装好了,不知道这样有不有影响呢?!
回复

使用道具 举报

 楼主| 发表于 2005-9-29 16:19:04 | 显示全部楼层
make能通过。但是
在make -C tools/makeqpf 是出错了,信息如下:
[root@denixleen qt-embedded-free-2.3.10-debug]# make -C tools/makeqpf
make: Entering directory `/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debu
g/tools/makeqpf'
g++ -L/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib -Wl,-rpath,/ho
me/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib   -o ./makeqpf main.o
-lqte -lm
main.o(.text+0x10f2): In function `MakeQPF::staticMetaObject()':: undefined refe
rence to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int,
QMetaData*, int, QClassInfo*, int)'
main.o(.gnu.linkonce.r._ZTV7MakeQPF+0x13c): undefined reference to `QWidget:11
Event(_XEvent*)'
main.o(.gnu.linkonce.r._ZTV7MakeQPF+0x1b4): undefined reference to `QPaintDevice
::setX11Data(QPaintDeviceX11Data const*)'
main.o(.gnu.linkonce.r._ZTI7MakeQPF+0x: undefined reference to `typeinfo for Q
MainWindow'
main.o(.gnu.linkonce.r._ZTI6QGList+0x: undefined reference to `typeinfo for QC
ollection'
main.o(.gnu.linkonce.r._ZTI12FontViewItem+0x: undefined reference to `typeinfo
for QListViewItem'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `QSemiModal::className() const'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `QNetworkProtocol::connectionStateChanged(int, QString const&)'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `vtable for QSemiModal'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `QFontDialog::fontHighlighted
。。。(中间省略,也是关于一下undefined reference 的信息)。。。
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `QLocalFs::tr(char const*)'
/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined
reference to `vtable for QMotifPlusStyle'
collect2: ld returned 1 exit status
make: *** [makeqpf] 错误 1
make: Leaving directory `/home/denixleen/Trolltech/qt-embedded-free-2.3.10-debug
/tools/makeqpf'

请问,这是怎么一回事?怎么解决呢?谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 17:00 , Processed in 0.046134 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表