编译examples里的hello
[root@localhost hello]# make
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DNO_DEBUG -I/home/qt_x86/qt-2.3.7-emb/include -o hello.o hello.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DNO_DEBUG -I/home/qt_x86/qt-2.3.7-emb/include -o main.o main.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DNO_DEBUG -I/home/qt_x86/qt-2.3.7-emb/include -o moc_hello.o moc_hello.cpp
gcc -o hello hello.o main.o moc_hello.o -L/home/qt_x86/qt-2.3.7-emb/lib -lm -lqte
/home/qt_x86/qt-2.3.7-emb/lib/libqte.so: undefined reference to `QWizard::staticMetaObject()'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
按照置顶的帖子里的说法
把lib下的libqte*删掉, 然后
cd qtedir
export QTDIR=$PWD
试了还是不行!
我设置是./configure -qconfig qpe -system-jpeg -gif -qvfb -thread -depths 4,8,16,32
qconfig-qpe.h文件是直接从qtopia里考过来的,没改。
也试了不用qconfig,选择everything,也不行,undefined reference 反而更多了。
哪位高人可以指点一下我啊!
郁闷好几天了!