可是無法成功編譯最基本的hello!qt!
麻煩請知道解決方法的大大回一下文
謝謝
(小弟是照著http://caterpillar.onlyfun.net/phpBB2/viewtopic.php?t=235這一篇使用qmake做的)
- 代碼: 選擇全部
debian:~/hello# echo $QTDIR
/usr/include/qt3
debian:~/hello# make
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3/include -o hello.o hello.cpp
In file included from /usr/include/qt3/qobjectdefs.h:42,
from /usr/include/qt3/qwindowdefs.h:43,
from /usr/include/qt3/qwidget.h:42,
from /usr/include/qt3/qdesktopwidget.h:40,
from /usr/include/qt3/qapplication.h:42,
from hello.cpp:1:
/usr/include/qt3/qglobal.h:710:21: qconfig.h: 沒有此一檔案或目錄
/usr/include/qt3/qglobal.h:773:23: qfeatures.h: 沒有此一檔案或目錄
make: *** [hello.o] Error 1
debian:~/hello#
在make前的qmake -project hello.pro和qmake都沒問題
但是到make以後就發生了上述現象