我现在用freebsd6.0rc1.用ports安装了qmake ./usr/ports/devel/qmake
并设置了
#export QMAKESPEC=freebsd-g++
不过在编译hello.world 的时候显示如下错误.
$ pwd
/home/dead/qt/hello
$ qmake hello.pro
$ make
c++ -c -pipe -Wall -W -O2 -fno-strict-aliasing -pipe -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/local/share/qt/mkspecs/freebsd-g++ -I. -I. -I../../../../local/include -I/include -o main.o main.cpp
main.cpp:1:26: qapplication.h: No such file or directory
main.cpp:2:25: qpushbutton.h: No such file or directory
main.cpp: In function `int main(int, char**)':
main.cpp:7: error: `QApplication' undeclared (first use this function)
main.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:7: error: expected `;' before "a"
main.cpp:9: error: `QPushButton' undeclared (first use this function)
main.cpp:9: error: expected `;' before "hello"
main.cpp:10: error: `hello' undeclared (first use this function)
main.cpp:12: error: `a' undeclared (first use this function)
main.cpp: At global scope:
main.cpp:6: warning: unused parameter 'argc'
main.cpp:6: warning: unused parameter 'argv'
*** Error code 1
Stop in /usr/home/dead/qt/hello.
$
有朋友在 freebsd上用qt-designer的么?
能写个详细的配置过程么?
先谢谢了。
[ 此贴被XChinux在2005-11-03 09:08重新编辑 ]