Can't build examples: Missing Makefile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qtcreator
When starting Qt Creator, you may choose to open one of several example projects. If you do that, opening for instance, the Main Windows / Application example, the project does not build. Choosing the Build / Build Project "Application" menu item will cause a little progress bar to appear at the left-hand side, partly filled-in red. Click that little progress bar will reveal this build error:
Starting: /usr/bin/qmake-qt4 /usr/lib/
Failure to open file: /usr/lib/
Unable to generate makefile for: /usr/lib/
Exited with code 5.
Error while building project application
When executing build step 'QMake
Changed in qtcreator (Ubuntu): | |
status: | New → Fix Committed |
Changed in qtcreator (Ubuntu): | |
status: | Fix Committed → Fix Released |
This is because the /usr/lib tree is quite rightly write disabled for non-root users.
In my opinion, what should be happening is the examples should be in /usr/share/ doc/qtcreator/ examples/ and qtcreator should use them as templates and copy the relevant example to the users home directory for compilation. There's no sane reason for compiling in place like this - the examples should be known-good examples of the best practice way of doing things, if I use the examples as my work area I can easily break them and then I don't have a known-good source to refer back to.