免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1339 | 回复: 0
打印 上一主题 下一主题

[FreeBSD] 如何在freebsd6.0rc1下安装qt-designer? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-31 19:49 |只看该作者 |倒序浏览
我学了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.
$

有朋友能帮帮我么。
能写个比较详细的配置过程么?
先谢谢了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP