Installed QT 5.5.0 on Fedora22: Help me set required permission
-
Hi and welcome to devnet,
Where do you get that error exactly ? What where you trying to do ?
-
I just opened qt 5 from the applications menu. So qt will be opened by the user but not root.
I wanted to have a look at inbuilt examples so i headed to examples tab and clicked on a example after which i got a notification saying i dont have write permission for /opt/qt5.5.0 . -
Go to the project panel and check the shadow build path. It's pointing to something like /opt/where_the_example_is_located/build-MyExample-Debug_etc. Change the path before build-MyExample-Debug-etc. to a place where you can write and you should be good to go
-
Did you re-run qmake after changing the path ?
-
You can do that from the Build menu.
No it's not the equivalent of a build, qmake is a project manager (like cmake, QBS etc.). It set things up for you so then you can do builds.
-
Which header is missing ?
-
No, it's not a permission problem. Seems like you moved some stuff around that find is in qtquickcontrols/examples/quick/controls/shared
-
The path "/home/nishanth/gallery/main.cpp" doesn't look correct gallery should be in qtquickcontrols/examples/quick/controls/
-
@SGaist Ya i did explain why it is at /home/nishanth/.
When i select a example it gives a notification saying this [IMG]http://i62.tinypic.com/2h5u3p3.png[/IMG]
After which i makes a copy at /home/nishanth -
Ok, then you need to also copy the "shared" folder at the same place.
I though you only changed the shadow build path not copied the whole example
-
I really didnt get what to do can you please elaborate please.
-
Copy the folder name "shared" that is in the example folder /quick/controls/ in /home/nishanth/
-
I had to copy the contents of shared folder "Examples/quick/control/shared" to the example folder in my home directory.
Here home directory is set as my project directory.
Ty very much for helping me.
But dont you think all these should work out of the box? -
AFAIC Qt Creator assumes that examples are self contained. These are a bit of a special case