Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. IConfuguring QT for remote development on a Windows PC

IConfuguring QT for remote development on a Windows PC

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
27 Posts 4 Posters 2.4k 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.
  • K Offline
    K Offline
    K-Str
    wrote on 27 Mar 2024, 14:11 last edited by
    #1

    Hello,
    I'm starting again with QT on a Windows PC and would like to develop C++ programs for a Raspberry there.
    I have the latest QT 12 (community) installed.
    Likewise, I installed this toolchain
    "https://gnutoolchains.com/raspberry/".
    Is there a tutorial somewhere on how to configure QT for remote development?
    Since I have often received qualified help here, I would be very happy about help.
    Thank you very much
    Kurt

    R 1 Reply Last reply 27 Mar 2024, 14:13
    0
    • K K-Str
      27 Mar 2024, 14:11

      Hello,
      I'm starting again with QT on a Windows PC and would like to develop C++ programs for a Raspberry there.
      I have the latest QT 12 (community) installed.
      Likewise, I installed this toolchain
      "https://gnutoolchains.com/raspberry/".
      Is there a tutorial somewhere on how to configure QT for remote development?
      Since I have often received qualified help here, I would be very happy about help.
      Thank you very much
      Kurt

      R Offline
      R Offline
      Ronel_qtmaster
      wrote on 27 Mar 2024, 14:13 last edited by
      #2

      @K-Str yes you will need to cross compile Qt for raspberry on windows .I have written an article for doing it

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ronel_qtmaster
        wrote on 27 Mar 2024, 14:15 last edited by
        #3

        guide.PNG

        https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link

        Above is the link to download

        K 1 Reply Last reply 27 Mar 2024, 16:07
        0
        • R Ronel_qtmaster
          27 Mar 2024, 14:15

          guide.PNG

          https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link

          Above is the link to download

          K Offline
          K Offline
          K-Str
          wrote on 27 Mar 2024, 16:07 last edited by K-Str
          #4

          @Ronel_qtmaster
          Thank you very much for your quick answer. I'll get to it tomorrow and try it out. Let's see if it still works with Qt12.
          I'll let you know how it went.
          If I need additional libraries on the Raspberry do I need to synchronize it again?
          greeting
          Kurt

          R C 2 Replies Last reply 27 Mar 2024, 16:11
          0
          • K K-Str
            27 Mar 2024, 16:07

            @Ronel_qtmaster
            Thank you very much for your quick answer. I'll get to it tomorrow and try it out. Let's see if it still works with Qt12.
            I'll let you know how it went.
            If I need additional libraries on the Raspberry do I need to synchronize it again?
            greeting
            Kurt

            R Offline
            R Offline
            Ronel_qtmaster
            wrote on 27 Mar 2024, 16:11 last edited by
            #5

            @K-Str okay try and let me know if you face any problem

            K 1 Reply Last reply 28 Mar 2024, 05:28
            0
            • K K-Str
              27 Mar 2024, 16:07

              @Ronel_qtmaster
              Thank you very much for your quick answer. I'll get to it tomorrow and try it out. Let's see if it still works with Qt12.
              I'll let you know how it went.
              If I need additional libraries on the Raspberry do I need to synchronize it again?
              greeting
              Kurt

              C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 27 Mar 2024, 16:28 last edited by
              #6

              @K-Str said in IConfuguring QT for remote development on a Windows PC:

              Qt12

              There is no Qt12, we are currently at version 6.7...

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              K 1 Reply Last reply 28 Mar 2024, 05:22
              0
              • C Christian Ehrlicher
                27 Mar 2024, 16:28

                @K-Str said in IConfuguring QT for remote development on a Windows PC:

                Qt12

                There is no Qt12, we are currently at version 6.7...

                K Offline
                K Offline
                K-Str
                wrote on 28 Mar 2024, 05:22 last edited by
                #7

                @Christian-Ehrlicher you are right, I use QT-Creator 12.0.2 which is based on QT 6.6.0 (MSVC 2019, x86_64)!
                Sorry.

                1 Reply Last reply
                0
                • R Ronel_qtmaster
                  27 Mar 2024, 16:11

                  @K-Str okay try and let me know if you face any problem

                  K Offline
                  K Offline
                  K-Str
                  wrote on 28 Mar 2024, 05:28 last edited by K-Str
                  #8

                  @Ronel_qtmaster Tthanks for your help.
                  But there are some differences to your QT version.
                  But step 6 is not really clear for me:

                  Create a new folder called qtraspberry
                   Go to path_of_installed_qt\Qt5.13.2\5.13.2 and copy Src folder to qtraspberry
                  
                   Go to qtraspberry\Src and open the file \qtbase\mkspecs\linux-arm-gnueabi-
                  g++\qmake.conf in a textEditor
                  
                   Replace arm-linux-gnueabi- with arm-linux-gnueabihf- in the whole file
                   Go to \qtbase\mkspecs\win32-g++\qmake.conf and add -U__STRICT_ANSI__ to
                  CXXFLAGS
                   Results should be like this:
                  

                  I can not find a Src folder in the QT folder and nor qmake.conf on the PC.
                  Where is this?

                  R K 2 Replies Last reply 28 Mar 2024, 05:32
                  0
                  • K K-Str
                    28 Mar 2024, 05:28

                    @Ronel_qtmaster Tthanks for your help.
                    But there are some differences to your QT version.
                    But step 6 is not really clear for me:

                    Create a new folder called qtraspberry
                     Go to path_of_installed_qt\Qt5.13.2\5.13.2 and copy Src folder to qtraspberry
                    
                     Go to qtraspberry\Src and open the file \qtbase\mkspecs\linux-arm-gnueabi-
                    g++\qmake.conf in a textEditor
                    
                     Replace arm-linux-gnueabi- with arm-linux-gnueabihf- in the whole file
                     Go to \qtbase\mkspecs\win32-g++\qmake.conf and add -U__STRICT_ANSI__ to
                    CXXFLAGS
                     Results should be like this:
                    

                    I can not find a Src folder in the QT folder and nor qmake.conf on the PC.
                    Where is this?

                    R Offline
                    R Offline
                    Ronel_qtmaster
                    wrote on 28 Mar 2024, 05:32 last edited by
                    #9

                    @K-Str Good Morining.Sorry i did not notice that you was using Qt6.Anyway, the procedure is globally the same.
                    Well Src folder is just the folder containing sources of Qt.When you install qt, you can select sources so that the program downloads them as well.

                    K 1 Reply Last reply 28 Mar 2024, 09:55
                    0
                    • R Ronel_qtmaster
                      28 Mar 2024, 05:32

                      @K-Str Good Morining.Sorry i did not notice that you was using Qt6.Anyway, the procedure is globally the same.
                      Well Src folder is just the folder containing sources of Qt.When you install qt, you can select sources so that the program downloads them as well.

                      K Offline
                      K Offline
                      K-Str
                      wrote on 28 Mar 2024, 09:55 last edited by K-Str
                      #10

                      @Ronel_qtmaster Thanks for your answer! can I reinstall the Src? or must I install qt completely?

                      J 1 Reply Last reply 28 Mar 2024, 10:09
                      0
                      • K K-Str
                        28 Mar 2024, 09:55

                        @Ronel_qtmaster Thanks for your answer! can I reinstall the Src? or must I install qt completely?

                        J Online
                        J Online
                        jsulm
                        Lifetime Qt Champion
                        wrote on 28 Mar 2024, 10:09 last edited by
                        #11

                        @K-Str said in IConfuguring QT for remote development on a Windows PC:

                        or must I install qt completely?

                        No, just download Qt source code for your platform (https://download.qt.io/archive/qt/6.6/6.6.3/single/) - for Windows you need the zip archive.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1
                        • K K-Str
                          28 Mar 2024, 05:28

                          @Ronel_qtmaster Tthanks for your help.
                          But there are some differences to your QT version.
                          But step 6 is not really clear for me:

                          Create a new folder called qtraspberry
                           Go to path_of_installed_qt\Qt5.13.2\5.13.2 and copy Src folder to qtraspberry
                          
                           Go to qtraspberry\Src and open the file \qtbase\mkspecs\linux-arm-gnueabi-
                          g++\qmake.conf in a textEditor
                          
                           Replace arm-linux-gnueabi- with arm-linux-gnueabihf- in the whole file
                           Go to \qtbase\mkspecs\win32-g++\qmake.conf and add -U__STRICT_ANSI__ to
                          CXXFLAGS
                           Results should be like this:
                          

                          I can not find a Src folder in the QT folder and nor qmake.conf on the PC.
                          Where is this?

                          K Offline
                          K Offline
                          K-Str
                          wrote on 28 Mar 2024, 11:35 last edited by K-Str
                          #12
                          This post is deleted!
                          J 1 Reply Last reply 28 Mar 2024, 11:36
                          0
                          • K K-Str
                            28 Mar 2024, 11:35

                            This post is deleted!

                            J Online
                            J Online
                            jsulm
                            Lifetime Qt Champion
                            wrote on 28 Mar 2024, 11:36 last edited by
                            #13

                            @K-Str RaspberryPI running with Linux means you need to download the tar.xz archive.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            K 1 Reply Last reply 28 Mar 2024, 11:59
                            0
                            • J jsulm
                              28 Mar 2024, 11:36

                              @K-Str RaspberryPI running with Linux means you need to download the tar.xz archive.

                              K Offline
                              K Offline
                              K-Str
                              wrote on 28 Mar 2024, 11:59 last edited by
                              #14

                              @jsulm Thanks. I use Windows 10 as host.

                              K 1 Reply Last reply 28 Mar 2024, 12:56
                              0
                              • K K-Str
                                28 Mar 2024, 11:59

                                @jsulm Thanks. I use Windows 10 as host.

                                K Offline
                                K Offline
                                K-Str
                                wrote on 28 Mar 2024, 12:56 last edited by
                                #15

                                @K-Str in step 7 you write:

                                Enter in the build folder.Then launch msys.bat. It is located in the folder
                                c:\SysGCC\MinGW32\msys\1.0\msys.bat
                                

                                but I can nor t find a file like msys.bat there is also no directory mysys...
                                Please could you help me?

                                R 1 Reply Last reply 28 Mar 2024, 13:54
                                0
                                • K K-Str
                                  28 Mar 2024, 12:56

                                  @K-Str in step 7 you write:

                                  Enter in the build folder.Then launch msys.bat. It is located in the folder
                                  c:\SysGCC\MinGW32\msys\1.0\msys.bat
                                  

                                  but I can nor t find a file like msys.bat there is also no directory mysys...
                                  Please could you help me?

                                  R Offline
                                  R Offline
                                  Ronel_qtmaster
                                  wrote on 28 Mar 2024, 13:54 last edited by
                                  #16

                                  @K-Str Hi.Did you install Mingw as specified in the guide?You may also verify if the version in the guide correspond to what you have downloaded.In fact, mysys helps you to run linux like command line environment in windows.

                                  K R 2 Replies Last reply 28 Mar 2024, 14:51
                                  0
                                  • R Ronel_qtmaster
                                    28 Mar 2024, 13:54

                                    @K-Str Hi.Did you install Mingw as specified in the guide?You may also verify if the version in the guide correspond to what you have downloaded.In fact, mysys helps you to run linux like command line environment in windows.

                                    K Offline
                                    K Offline
                                    K-Str
                                    wrote on 28 Mar 2024, 14:51 last edited by K-Str
                                    #17

                                    @Ronel_qtmaster yes I did everything as requested. The only I havn't done I did not install python. Is this the reason?
                                    Maybe there is something wrong. because the directoryname is diffrent:
                                    Mmingw32Verz.jpg

                                    1 Reply Last reply
                                    0
                                    • R Ronel_qtmaster
                                      28 Mar 2024, 13:54

                                      @K-Str Hi.Did you install Mingw as specified in the guide?You may also verify if the version in the guide correspond to what you have downloaded.In fact, mysys helps you to run linux like command line environment in windows.

                                      R Offline
                                      R Offline
                                      Ronel_qtmaster
                                      wrote on 28 Mar 2024, 15:18 last edited by Ronel_qtmaster
                                      #18

                                      @Ronel_qtmaster did you take mingw with the gcc version of 4.8.1?
                                      gcc.PNG

                                      K 1 Reply Last reply 28 Mar 2024, 16:19
                                      0
                                      • R Ronel_qtmaster
                                        28 Mar 2024, 15:18

                                        @Ronel_qtmaster did you take mingw with the gcc version of 4.8.1?
                                        gcc.PNG

                                        K Offline
                                        K Offline
                                        K-Str
                                        wrote on 28 Mar 2024, 16:19 last edited by
                                        #19

                                        @Ronel_qtmaster , no I used this one:
                                        mingw32-gcc12.2.0.
                                        Is it better to use 4.8.1?
                                        How can I remove the wrong version?

                                        R 1 Reply Last reply 28 Mar 2024, 17:38
                                        0
                                        • K K-Str
                                          28 Mar 2024, 16:19

                                          @Ronel_qtmaster , no I used this one:
                                          mingw32-gcc12.2.0.
                                          Is it better to use 4.8.1?
                                          How can I remove the wrong version?

                                          R Offline
                                          R Offline
                                          Ronel_qtmaster
                                          wrote on 28 Mar 2024, 17:38 last edited by
                                          #20

                                          @K-Str yes use the exact version specified in the tutorial.Because it has mysys.That said, just uninstall the current version and download 4.8.1

                                          C 1 Reply Last reply 28 Mar 2024, 18:16
                                          0

                                          7/27

                                          28 Mar 2024, 05:22

                                          topic:navigator.unread, 20
                                          • Login

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