|
交叉编译QT的例子aclock出错,不知为何,请高手指教!
[复制链接]
[root@vmlinux aclock]# make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/rdc/qte/qt-2.3.7/include -o aclock.o aclock.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/rdc/qte/qt-2.3.7/include -o main.o main.cpp
/root/rdc/qte/qt-2.3.7/bin/moc aclock.h -o moc_aclock.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/rdc/qte/qt-2.3.7/include -o moc_aclock.o moc_aclock.cpp
arm-linux-gcc -o aclock aclock.o main.o moc_aclock.o -L/root/rdc/qte/qt-2.3.7/lib -lm -lqte
aclock.o(.text+0x34): In function `AnalogClock::AnalogClock[not-in-charge](QWidget*, char const*)':
: undefined reference to `operator new(unsigned)'
aclock.o(.text+0xb4): In function `AnalogClock::AnalogClock[in-charge](QWidget*, char const*)':
: undefined reference to `operator new(unsigned)'
aclock.o(.gnu.linkonce.t._ZN11QPointArrayD0Ev+0x1c): In function `QPointArray::~QPointArray [in-charge deleting]()':
: undefined reference to `operator delete(void*)'
aclock.o(.gnu.linkonce.t._ZN7QBitmapD0Ev+0x1c): In function `QBitmap::~QBitmap [in-charge deleting]()':
:
............(略去部分)..........
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QNetworkProtocol::createdDirectory(QUrlInfo const&, QNetworkOperation*)'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QNetworkProtocol::tr(char const*)'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QIconViewItemLineEdit'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QProgressDialog'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QNetworkProtocol::dataTransferProgress(int, int, QNetworkOperation*)'
............(略去部分)..........
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QWSSoundServer'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QTranslator'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QLocalFs::tr(char
const*)'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QActionGroup::selected(QAction*)'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QMotifPlusStyle'
/root/rdc/qte/qt-2.3.7/lib/libqte.so: undefined reference to `QIconView::mouseButtonPressed(int, QIconViewItem*, QPoint const&)'
collect2: ld returned 1 exit status
make: *** [aclock] Error 1
[root@vmlinux aclock]#
|
|