分类: 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"权限":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 : )