裝了
gcc libc6-dev
qt3.1 libqt3c102 libqt3-dev
g++ libg++ libg++-dev仍然無法編譯(找不到header,像qapplication.h)
請問一下各位大哥哥們,還要再裝什麼才能編譯qt程式呢[/quote]
版主: mufa
moto@debian[/tmp/fireapplet-0.1]$ ./configure --with-qt-includes=/usr/include/qt3/
debian:~/hello# ls
hello.cpp
debian:~/hello# qmake -project hello.pro
debian:~/hello# qmake hello.pro
debian:~/hello# make
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I. -I/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# cat hello.cpp
#include</usr/include/qt3/qapplication.h>
#include</usr/include/qt3/qlabel.h>
int main (int argc, char **argv)
{
QApplication app(argc, argv);
QLabel hello("hello world",0);
hello.resize(105,20);
app.setMainWidget(&hello);
hello.show();
return app.exec();
}
debian:~/hello#
debian:~# find /usr/include/qt3/qconfig.h;find /usr/include/qt3/qfeatures.h
/usr/include/qt3/qconfig.h
/usr/include/qt3/qfeatures.h
debian:~#
/usr/include/qt3/qglobal.h:710:21: qconfig.h: 沒有此一檔案或目錄
/usr/include/qt3/qglobal.h:773:23: qfeatures.h: 沒有此一檔案或目錄
make: *** [hello.o] Error 1
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客