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. Rotate Qt app in framebuffer.
Forum Updated to NodeBB v4.3 + New Features

Rotate Qt app in framebuffer.

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 5 Posters 1.9k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Looks like you would need to apply the patch you can find here to the linuxfb backend. It's the first one on the list.

    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
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #3

      xrandr extension? https://www.x.org/wiki/Projects/XRandR/

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Piotrrr
        wrote on last edited by Piotrrr
        #4

        @SGaist said in Rotate Qt app in framebuffer.:

        Hi,

        Looks like you would need to apply the patch you can find here to the linuxfb backend. It's the first one on the list.

        Can you tell me how exactly I should do it? I downloaded the patch and not sure what I should do next. Where do I put it? To the qt directory where the configure file is? Then I should run the commands:

        git init
        git apply --stat <patch_name>
        git apply --check <patch_name>
        git am --signoff < <patch_name>
        

        ?
        And then recompile the whole Qt?
        Thanks.

        jsulmJ 2 Replies Last reply
        0
        • P Piotrrr

          @SGaist said in Rotate Qt app in framebuffer.:

          Hi,

          Looks like you would need to apply the patch you can find here to the linuxfb backend. It's the first one on the list.

          Can you tell me how exactly I should do it? I downloaded the patch and not sure what I should do next. Where do I put it? To the qt directory where the configure file is? Then I should run the commands:

          git init
          git apply --stat <patch_name>
          git apply --check <patch_name>
          git am --signoff < <patch_name>
          

          ?
          And then recompile the whole Qt?
          Thanks.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #5
          This post is deleted!
          1 Reply Last reply
          0
          • P Piotrrr

            @SGaist said in Rotate Qt app in framebuffer.:

            Hi,

            Looks like you would need to apply the patch you can find here to the linuxfb backend. It's the first one on the list.

            Can you tell me how exactly I should do it? I downloaded the patch and not sure what I should do next. Where do I put it? To the qt directory where the configure file is? Then I should run the commands:

            git init
            git apply --stat <patch_name>
            git apply --check <patch_name>
            git am --signoff < <patch_name>
            

            ?
            And then recompile the whole Qt?
            Thanks.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @Piotrrr said in Rotate Qt app in framebuffer.:

            Then I should run the commands:
            git init
            git apply --stats <patch_name>
            git apply --check <patch_name>
            git am --signoff < <patch_name>

            ?
            And then recompile the whole Qt?

            Yes, did you try?

            1 Reply Last reply
            1
            • P Offline
              P Offline
              Piotrrr
              wrote on last edited by
              #7

              Yes, and after git apply --check I get:

              error: recipes-qt/qt5/qtbase_git.bb: No such file or directory
              

              I don't have anywhere in my qt dir file named qtbase_git.bb. I downloaded qt with:

              sudo wget http://download.qt.io/archive/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz
              
              jsulmJ 1 Reply Last reply
              0
              • P Piotrrr

                Yes, and after git apply --check I get:

                error: recipes-qt/qt5/qtbase_git.bb: No such file or directory
                

                I don't have anywhere in my qt dir file named qtbase_git.bb. I downloaded qt with:

                sudo wget http://download.qt.io/archive/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Piotrrr I think you can remove "diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb" part from the patch.

                1 Reply Last reply
                1
                • P Offline
                  P Offline
                  Piotrrr
                  wrote on last edited by
                  #9

                  After removing "diff" I still get the problem because at lines 208-209 there are:

                  --- a/recipes-qt/qt5/qtbase_git.bb
                  +++ b/recipes-qt/qt5/qtbase_git.bb
                  

                  which have the same directory. Of course can't remove these because then I get:

                  error: patch fragment without header at line 209: @@ -31,6 +31,8 @@ SRC_URI += "\
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Make a file only containing the part relevant to 0001-Fix-the-qt5.6-linuxfb-ratation-problem.patch

                    Then apply that smaller patch.

                    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
                    • P Offline
                      P Offline
                      Piotrrr
                      wrote on last edited by
                      #11

                      I'm not sure which lines I can remove and which I shouldn't. I removed everything between line with "+2.7.4" (line 125) and the last line in the file with "+PR = "r2"". The commands with "--stat" and "--check" passed but at the git am --signof < fileName I get output:

                      meta-qt5-qtbase-Fix-the-qt5-linuxfb-ratation-problem.patch:28: trailing whitespace.
                       
                      meta-qt5-qtbase-Fix-the-qt5-linuxfb-ratation-problem.patch:40: trailing whitespace.
                       
                      meta-qt5-qtbase-Fix-the-qt5-linuxfb-ratation-problem.patch:50: trailing whitespace.
                       
                      meta-qt5-qtbase-Fix-the-qt5-linuxfb-ratation-problem.patch:68: trailing whitespace.
                       
                      meta-qt5-qtbase-Fix-the-qt5-linuxfb-ratation-problem.patch:74: trailing whitespace.
                       
                      warning: squelched 9 whitespace errors
                      warning: 14 lines add whitespace errors.
                      

                      Did this apply succeded? Can I now recompile Qt?

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

                        If you do a git diff what do you get ?
                        If you see the changes required then just go and build.

                        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
                        • P Offline
                          P Offline
                          Piotrrr
                          wrote on last edited by
                          #13

                          When I do git diff I get nothing, I built it but nothing has changed, rotation still doesn't work.

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

                            Then the patch was not applied.

                            That thing is really simple. If you do not manage to apply it, do the corresponding changes yourself in the files.

                            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
                            1
                            • P Offline
                              P Offline
                              Piotrrr
                              wrote on last edited by Piotrrr
                              #15

                              Then I'll try do it yourself. Thanks for the help.
                              Edit:
                              I made the changes myself and it works, app rotates. Thanks once again.

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                embexus
                                wrote on last edited by
                                #16

                                can you please send a link to the patch the url doesn't work!

                                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