Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Installed QT 5.5.0 on Fedora22: Help me set required permission
QtWS25 Last Chance

Installed QT 5.5.0 on Fedora22: Help me set required permission

Scheduled Pinned Locked Moved General and Desktop
linuxfedorapermissionrootwriteopt
20 Posts 2 Posters 5.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nishu-tryinghard
    wrote on last edited by
    #3

    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 .

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        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

        N Offline
        N Offline
        nishu-tryinghard
        wrote on last edited by nishu-tryinghard
        #5

        @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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Did you re-run qmake after changing the path ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you re-run qmake after changing the path ?

            N Offline
            N Offline
            nishu-tryinghard
            wrote on last edited by
            #7

            @SGaist Do i have to run qmake in terminal or is it a equivalent of build?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              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.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • SGaistS SGaist

                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.

                N Offline
                N Offline
                nishu-tryinghard
                wrote on last edited by
                #9

                @SGaist Done, even after running qmake it gives the same error as before about missing header file.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  Which header is missing ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  N 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Which header is missing ?

                    N Offline
                    N Offline
                    nishu-tryinghard
                    wrote on last edited by
                    #11

                    @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?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      No, it's not a permission problem. Seems like you moved some stuff around that find is in qtquickcontrols/examples/quick/controls/shared

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      N 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        No, it's not a permission problem. Seems like you moved some stuff around that find is in qtquickcontrols/examples/quick/controls/shared

                        N Offline
                        N Offline
                        nishu-tryinghard
                        wrote on last edited by
                        #13

                        @SGaist I didnt move anything i installed it a while ago so i didnt do any changes or moved anything.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          The path "/home/nishanth/gallery/main.cpp" doesn't look correct gallery should be in qtquickcontrols/examples/quick/controls/

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          N 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            The path "/home/nishanth/gallery/main.cpp" doesn't look correct gallery should be in qtquickcontrols/examples/quick/controls/

                            N Offline
                            N Offline
                            nishu-tryinghard
                            wrote on last edited by
                            #15

                            @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

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by SGaist
                              #16

                              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

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • N Offline
                                N Offline
                                nishu-tryinghard
                                wrote on last edited by
                                #17

                                I really didnt get what to do can you please elaborate please.

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #18

                                  Copy the folder name "shared" that is in the example folder /quick/controls/ in /home/nishanth/

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    nishu-tryinghard
                                    wrote on last edited by nishu-tryinghard
                                    #19

                                    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?

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #20

                                      AFAIC Qt Creator assumes that examples are self contained. These are a bit of a special case

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0

                                      • Login

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved