Installed QT 5.5.0 on Fedora22: Help me set required permission
-
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
-
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
wrote on 16 Jul 2015, 13:52 last edited by nishu-tryinghard@SGaist Shadow build path is set to /home/user where it is writable. And i get "some_file.h no such directory or file" error if i run.
-
Did you re-run qmake after changing the path ?
-
wrote on 16 Jul 2015, 13:57 last edited by
@SGaist Do i have to run qmake in terminal or is it a equivalent of build?
-
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.
-
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.
wrote on 16 Jul 2015, 14:01 last edited by@SGaist Done, even after running qmake it gives the same error as before about missing header file.
-
Which header is missing ?
-
wrote on 16 Jul 2015, 14:04 last edited by
@SGaist /home/nishanth/gallery/main.cpp:41: error: qtquickcontrolsapplication.h: No such file or directory
Dont you think all these issues are because of permission issues?
-
No, it's not a permission problem. Seems like you moved some stuff around that find is in qtquickcontrols/examples/quick/controls/shared
-
No, it's not a permission problem. Seems like you moved some stuff around that find is in qtquickcontrols/examples/quick/controls/shared
wrote on 16 Jul 2015, 14:29 last edited by@SGaist I didnt move anything i installed it a while ago so i didnt do any changes or moved anything.
-
The path "/home/nishanth/gallery/main.cpp" doesn't look correct gallery should be in qtquickcontrols/examples/quick/controls/
-
The path "/home/nishanth/gallery/main.cpp" doesn't look correct gallery should be in qtquickcontrols/examples/quick/controls/
wrote on 16 Jul 2015, 14:36 last edited by@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
-
wrote on 16 Jul 2015, 14:48 last edited by
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/
-
wrote on 16 Jul 2015, 14:59 last edited by nishu-tryinghard
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
13/20