- 论坛徽章:
- 0
|
我学了designer一段时间。
以前用的fedora.designer都不用配置。
现在用freebsd6.0rc1 .
用port安装了qmake /usr/ports/devel/qmake
并设置了QMAKESPEC
$export QMAKESPEC=freebsd-g++
不过在编译hello的时候。错误如下:
$ 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.
$
有朋友能帮帮我么。
能写个比较详细的配置过程么?
先谢谢了。 |
|