/root/x86qt/qt-2.3.7/bin/uic mainwindow.ui -o ./mainwindow.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/main.o main.cpp
/root/x86qt/qt-2.3.7/bin/uic mainwindow.ui -i mainwindow.h -o mainwindow.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/mainwindow.o mainwindow.cpp
/root/x86qt/qt-2.3.7/bin/moc mainwindow.h -o tmp/moc_mainwindow.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/x86qt/qt-2.3.7/include -o tmp/moc_mainwindow.o tmp/moc_mainwindow.cpp
gcc -o bluetooth tmp/main.o tmp/mainwindow.o tmp/moc_mainwindow.o -L/root/x86qt/qt-2.3.7/lib -lqte
/root/x86qt/qt-2.3.7/lib/libqte.so: undefined reference to `QWizard::staticMetaObject()'
collect2: ld returned 1 exit status
make: *** [bluetooth] Error 1
下面是我的一些环境变量设置
QTDIR=/root/x86qt/qt-2.3.7
QTEDIR=/root/x86qt/qt-2.3.7
TMAKEDIR=/root/tmake
TMAKEDIR=$TMAKEDIR/lib/qws/linux-generic-g++
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
我按照上的说法又编译了一遍,还是出现相同的错误
阅读(823) | 评论(0) | 转发(0) |