Chinaunix首页 | 论坛 | 博客
  • 博客访问: 74547
  • 博文数量: 11
  • 博客积分: 391
  • 博客等级: 一等列兵
  • 技术积分: 125
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-31 09:02
文章分类

全部博文(11)

文章存档

2011年(4)

2010年(7)

我的朋友

分类: C/C++

2010-08-29 03:22:28

reference:
http://blog.163.com/happyboyyu@yeah/blog/static/10733446220105284011283/

when i use qtcreator open an example or demo and run it, some errors were happened:



Running build steps for project tabdialog...
Starting: /usr/bin/qmake-qt4 /usr/lib/qt4/examples/dialogs/tabdialog/tabdialog.pro -spec /usr/share/qt4/mkspecs/linux-g++ -r CONFIG+=debug

Failure to open file: /usr/lib/qt4/examples/dialogs/tabdialog/Makefile
Unable to generate makefile for: /usr/lib/qt4/examples/dialogs/tabdialog/tabdialog.pro
Exited with code 5.
Error while building project tabdialog
When executing build step 'QMake'

use ls for it's(examples/demos) permissions"权限":

ls -lh /home/applee/qt/examples


drwxr-xr-x 3 root root 4.0K 2010-03-23 21:20 assistant
drwxr-xr-x 7 root root 4.0K 2010-03-23 21:20 dbus
drwxr-xr-x 9 root root 4.0K 2010-03-23 21:20 designer
drwxr-xr-x 4 root root 4.0K 2010-03-23 21:20 desktop
drwxr-xr-x 10 root root 4.0K 2010-03-23 21:20 dialogs
drwxr-xr-x 8 root root 4.0K 2010-03-23 21:20 draganddrop

we should use chown to change it :

chown -hR qwjzh ./examples ./demos

now we can use qtcreator, enjoy it : )

阅读(2427) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~