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
Forum Updated to NodeBB v4.3 + New Features

IConfuguring QT for remote development on a Windows PC

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
27 Posts 4 Posters 3.9k 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.
  • Ronel_qtmasterR Ronel_qtmaster

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

    K-StrK Offline
    K-StrK Offline
    K-Str
    wrote on 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?

    Ronel_qtmasterR K-StrK 2 Replies Last reply
    0
    • K-StrK K-Str

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

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on 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-StrK 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @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-StrK Offline
        K-StrK Offline
        K-Str
        wrote on last edited by K-Str
        #10

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

        jsulmJ 1 Reply Last reply
        0
        • K-StrK K-Str

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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-StrK K-Str

            @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-StrK Offline
            K-StrK Offline
            K-Str
            wrote on last edited by K-Str
            #12
            This post is deleted!
            jsulmJ 1 Reply Last reply
            0
            • K-StrK K-Str

              This post is deleted!

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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-StrK 1 Reply Last reply
              0
              • jsulmJ jsulm

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

                K-StrK Offline
                K-StrK Offline
                K-Str
                wrote on last edited by
                #14

                @jsulm Thanks. I use Windows 10 as host.

                K-StrK 1 Reply Last reply
                0
                • K-StrK K-Str

                  @jsulm Thanks. I use Windows 10 as host.

                  K-StrK Offline
                  K-StrK Offline
                  K-Str
                  wrote on 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?

                  Ronel_qtmasterR 1 Reply Last reply
                  0
                  • K-StrK K-Str

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

                    Ronel_qtmasterR Offline
                    Ronel_qtmasterR Offline
                    Ronel_qtmaster
                    wrote on 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-StrK Ronel_qtmasterR 2 Replies Last reply
                    0
                    • Ronel_qtmasterR Ronel_qtmaster

                      @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-StrK Offline
                      K-StrK Offline
                      K-Str
                      wrote on 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
                      • Ronel_qtmasterR Ronel_qtmaster

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

                        Ronel_qtmasterR Offline
                        Ronel_qtmasterR Offline
                        Ronel_qtmaster
                        wrote on last edited by Ronel_qtmaster
                        #18

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

                        K-StrK 1 Reply Last reply
                        0
                        • Ronel_qtmasterR Ronel_qtmaster

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

                          K-StrK Offline
                          K-StrK Offline
                          K-Str
                          wrote on 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?

                          Ronel_qtmasterR 1 Reply Last reply
                          0
                          • K-StrK K-Str

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

                            Ronel_qtmasterR Offline
                            Ronel_qtmasterR Offline
                            Ronel_qtmaster
                            wrote on 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

                            Christian EhrlicherC 1 Reply Last reply
                            0
                            • Ronel_qtmasterR Ronel_qtmaster

                              @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

                              Christian EhrlicherC Online
                              Christian EhrlicherC Online
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on last edited by
                              #21

                              @Ronel_qtmaster And once again you are posting wrong stuff... Qt6 does not compile with a gcc older than gcc 8 or even 9...

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

                              Ronel_qtmasterR 1 Reply Last reply
                              0
                              • Christian EhrlicherC Christian Ehrlicher

                                @Ronel_qtmaster And once again you are posting wrong stuff... Qt6 does not compile with a gcc older than gcc 8 or even 9...

                                Ronel_qtmasterR Offline
                                Ronel_qtmasterR Offline
                                Ronel_qtmaster
                                wrote on last edited by
                                #22

                                @Christian-Ehrlicher i know that.But the purpose is to make him understand cross compilation first(The process) Not absolutely which version is right or wrong.

                                Christian EhrlicherC K-StrK 2 Replies Last reply
                                0
                                • Ronel_qtmasterR Ronel_qtmaster

                                  @Christian-Ehrlicher i know that.But the purpose is to make him understand cross compilation first(The process) Not absolutely which version is right or wrong.

                                  Christian EhrlicherC Online
                                  Christian EhrlicherC Online
                                  Christian Ehrlicher
                                  Lifetime Qt Champion
                                  wrote on last edited by Christian Ehrlicher
                                  #23

                                  @Ronel_qtmaster And what helps when he is using an outdated and unsupported compiler? It's just nonsense.

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

                                  Ronel_qtmasterR 1 Reply Last reply
                                  0
                                  • Ronel_qtmasterR Ronel_qtmaster

                                    @Christian-Ehrlicher i know that.But the purpose is to make him understand cross compilation first(The process) Not absolutely which version is right or wrong.

                                    K-StrK Offline
                                    K-StrK Offline
                                    K-Str
                                    wrote on last edited by
                                    #24

                                    @Ronel_qtmaster this means it's better to use vesion Qt5.13.2?

                                    Ronel_qtmasterR 1 Reply Last reply
                                    0
                                    • K-StrK K-Str

                                      @Ronel_qtmaster this means it's better to use vesion Qt5.13.2?

                                      Ronel_qtmasterR Offline
                                      Ronel_qtmasterR Offline
                                      Ronel_qtmaster
                                      wrote on last edited by
                                      #25

                                      @K-Str yes.You can try with Qt 5.13.2 as refered to the tutorial.Just to understand cross compilation because it is a tricky task especially in windows.Then when you master it, you will be able to handle compilation with Qt6 I am sure.

                                      1 Reply Last reply
                                      0
                                      • Christian EhrlicherC Christian Ehrlicher

                                        @Ronel_qtmaster And what helps when he is using an outdated and unsupported compiler? It's just nonsense.

                                        Ronel_qtmasterR Offline
                                        Ronel_qtmasterR Offline
                                        Ronel_qtmaster
                                        wrote on last edited by
                                        #26

                                        @Christian-Ehrlicher i am just trying to explain as much as possible.If you can add additional infos they will be welcomed

                                        1 Reply Last reply
                                        0
                                        • K-StrK Offline
                                          K-StrK Offline
                                          K-Str
                                          wrote on last edited by K-Str
                                          #27

                                          @Ronel_qtmaster @Christian-Ehrlicher, thanks for your contributions
                                          It is very helpful to me.
                                          If there is no tutorial how to install qt6 I will try version 5.13.2 .
                                          @Ronel_qtmaster is this Installation for python?
                                          What must I do to install it for C++?
                                          Ok! I tried to follow your instructions but there are some problems:
                                          Step 5 :

                                          Go to C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot\arm-linux-gnueabihf and copy
                                          libEGL.so.1 and libGLESv2.so.2 to C:\SysGCC\raspberry\arm-linux-
                                          gnueabihf\sysroot\opt\vc\lib and C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot
                                          

                                          But there is no ibEGL.so.1 etc.

                                          Step 7 :

                                          Copy and run the build script :
                                          ../Src/configure -platform win32-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -
                                          release -opengl es2 -device linux-rasp-pi3-g++ -sysroot C:/SysGCC/Raspberry/arm-linux-
                                          gnueabihf/sysroot -opensource -confirm-license -I C:/SysGCC/raspberry/arm-linux-
                                          gnueabihf/sysroot/opt/vc/include -L C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib
                                          

                                          It causes some errors :

                                          kurt@DESKTOP-V3KDDUA /c/qtraspberry/build
                                          $ ../Src/configure -platform win32-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -
                                          + cd qtbase
                                          + /c/qtraspberry/Src/qtbase/configure -top-level -platform win32-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -
                                          Preparing build tree...
                                          Creating qmake...
                                          .Done.
                                          ERROR: Unknown command line option '-'.
                                          
                                          kurt@DESKTOP-V3KDDUA /c/qtraspberry/build
                                          $ release -opengl es2 -device linux-rasp-pi3-g++ -sysroot C:/SysGCC/Raspberry/arm-linux-
                                          sh: release: command not found
                                          
                                          kurt@DESKTOP-V3KDDUA /c/qtraspberry/build
                                          $ gnueabihf/sysroot -opensource -confirm-license -I C:/SysGCC/raspberry/arm-linux-
                                          sh: gnueabihf/sysroot: No such file or directory
                                          
                                          kurt@DESKTOP-V3KDDUA /c/qtraspberry/build
                                          $ gnueabihf/sysroot/opt/vc/include -L C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/li
                                          sh: gnueabihf/sysroot/opt/vc/include: No such file or directory
                                          
                                          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