ubuntu linux中安装qt后,编译example出错,求解

社会栋梁 2010-07-07 01:06:04
Running build steps for project systray...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I../systray -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../systray -I../systray -I. -o main.o ../systray/main.cpp
In file included from ../systray/main.cpp:44:
../systray/window.h:49: error: expected constructor, destructor, or type conversion before ‘class’
../systray/window.h:62: error: expected constructor, destructor, or type conversion before ‘class’
make: Leaving directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project systray (target: Desktop)
When executing build step 'Make'
...全文
272 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
ppcst 2010-07-19
  • 打赏
  • 举报
回复
没有遇到过
有arm-linux-gcc 4.3.2 中的libgcc_s.so.1库的朋友能不能发一个给我,太感谢了
社会栋梁 2010-07-13
  • 打赏
  • 举报
回复
安装程序是一步到位的啊
gemfield 2010-07-09
  • 打赏
  • 举报
回复
头文件缺失导致的,你安装的时候可能太乱了吧
社会栋梁 2010-07-08
  • 打赏
  • 举报
回复
自己顶
社会栋梁 2010-07-07
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jinjianxinxh 的回复:]
貌似是qt的版本不对吧
[/Quote]

我下载的是最新版啊,http://qt.nokia.com/downloads
jinjianxinxh 2010-07-07
  • 打赏
  • 举报
回复
貌似是qt的版本不对吧
社会栋梁 2010-07-07
  • 打赏
  • 举报
回复
user@root-desktop:~/qtsdk-2010.04/qt/examples$ ls -l desktop
total 20
-rw-r--r-- 1 user user 401 2010-06-01 19:03 desktop.pro
-rw-r--r-- 1 user user 1367 2010-06-01 19:03 README
drwxr-xr-x 2 user user 4096 2010-07-06 17:52 screenshot
drwxr-xr-x 3 user user 4096 2010-07-06 21:32 systray
drwxr-xr-x 2 user user 4096 2010-07-06 21:52 systray-build-desktop

以上有什么问题吗?
guozhixin 2010-07-07
  • 打赏
  • 举报
回复
看一下,home/user/qtsdk-2010.04/qt/examples/desktop/文件夹的使用权限,最好用root登录

16,819

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧