先前出现make: *** No rule to make target `/opt/FriendlyARM/QQ2440/arm-qtopia/qtopia/include/qtopia/qpeapplication.h', needed by `main.o'. Stop.错误
我解决了
是hello的makefile文件有问题是
/opt/FriendlyARM/qq2440/arm-qtopia/qtopia/include/qtopia/qpeapplication.h \改为
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia/include/qtopia/qpeapplication.h \
但又出现新问题
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x164): undefined reference to `QWidget::imComposeEvent(QIMEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x168): undefined reference to `QWidget::imEndEvent(QIMEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x16c): undefined reference to `QWidget::tabletEvent(QTabletEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x170): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x174): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x178): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x17c): undefined reference to `QWidget::dropEvent(QDropEvent*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1a8): undefined reference to `QWidget::windowActivationChange(bool)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1b0): undefined reference to `QWidget::create(unsigned long, bool, bool)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1c8): undefined reference to `QWidget::setMicroFocusHint(int, int, int, int, bool, QFont*)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1e4): undefined reference to `QPaintDevice::setResolution(int)'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1e8): undefined reference to `QPaintDevice::resolution() const'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1f0): undefined reference to `non-virtual thunk [nv:-40] to QWidget::scanLine(int) const'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1f4): undefined reference to `non-virtual thunk [nv:-40] to QWidget::bytesPerLine() const'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x1f8): undefined reference to `non-virtual thunk [nv:-40] to QWidget::graphicsContext(bool) const'
moc_hello_base.o(.gnu.linkonce.r._ZTV13HelloBaseForm+0x200): undefined reference to `non-virtual thunk [nv:-40] to QWidget::metric(int) const'
collect2: ld returned 1 exit status
make: *** [/opt/FriendlyARM/mini2440/arm-qtopia/qtopia/bin/hello] Error 1
估计是哪个头文件没包含进去,但具体不大清楚,请高手帮忙下!?
我build等上面配置都没报错,而且每一步都运行了,就这出错。
不知道是我没配置好,还是makefile 不行。
(资料都是公司给的)
不知道有没有人出现同样问题
