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. Qt Installation Error On Windows System
Forum Updated to NodeBB v4.3 + New Features

Qt Installation Error On Windows System

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
18 Posts 6 Posters 1.4k Views 2 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.
  • S Offline
    S Offline
    Shrishashank
    wrote on last edited by
    #1

    Hi, I'm trying to build Qt SourceCode on my Windows, but there are some errors while configuring the source code, I attached the image also, to help me to resolve an issue. imgpsh_fullsize_anim (1).jpeg imgpsh_fullsize_anim (2).jpeg imgpsh_fullsize_anim (3).jpeg imgpsh_fullsize_anim (4).jpeg

    My Configure Path:../configure -prefix /home/dell-s/STask/Qt6-SourceCode/Qtbugfix -skip qtdoc -skip qttranslations -skip qt3d -skip qtandroidextras -skip webkit -skip pdf -skip qtwebengine -skip qtopcua -skip qtwebview -skip qtmultimedia -skip qtspeech -skip qttools -nomake tests -nomake examples -no-openssl -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -- -DQT_BUILD_TESTS_BY_DEFAULT=OF

    I referred to the QtDocumentaion:https://wiki.qt.io/Building_Qt_6_from_Git

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

      Hi and welcome to devnet,

      From the looks of it you are not using the correct command prompt such as x64 Native Tools Command Prompt for VS 2022') as explained in the article you linked.

      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
      2
      • S Offline
        S Offline
        Shrishashank
        wrote on last edited by
        #3

        Okay, I used what you suggested using the x64 Native Tools Command Prompt for VS 2022') but I got the same error that I posted as an issue.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, instead of using PowerShell, try using CMD

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Shrishashank
            wrote on last edited by
            #5

            I tried CMD also,if anyone tried tell me how to resolve it

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Remove perl from your path so MSVC is correctly picked up instead the gcc from perl as you can see in the output.

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

              S 1 Reply Last reply
              2
              • S Shrishashank

                Hi, I'm trying to build Qt SourceCode on my Windows, but there are some errors while configuring the source code, I attached the image also, to help me to resolve an issue. imgpsh_fullsize_anim (1).jpeg imgpsh_fullsize_anim (2).jpeg imgpsh_fullsize_anim (3).jpeg imgpsh_fullsize_anim (4).jpeg

                My Configure Path:../configure -prefix /home/dell-s/STask/Qt6-SourceCode/Qtbugfix -skip qtdoc -skip qttranslations -skip qt3d -skip qtandroidextras -skip webkit -skip pdf -skip qtwebengine -skip qtopcua -skip qtwebview -skip qtmultimedia -skip qtspeech -skip qttools -nomake tests -nomake examples -no-openssl -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -- -DQT_BUILD_TESTS_BY_DEFAULT=OF

                I referred to the QtDocumentaion:https://wiki.qt.io/Building_Qt_6_from_Git

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #7

                @Shrishashank said in Qt Installation Error On Windows System:

                -xcb -xcb-xlib -bundled-xcb-xinput

                Why are you setting the X option on windows? are you trying to cross compile from windows to linux?

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  Shrishashank
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    Remove perl from your path so MSVC is correctly picked up instead the gcc from perl as you can see in the output.

                    S Offline
                    S Offline
                    Shrishashank
                    wrote on last edited by
                    #9

                    @Christian-Ehrlicher I did try to (Remove Perl from your path so MSVC ) is giving the same issue

                    Christian EhrlicherC 1 Reply Last reply
                    0
                    • S Shrishashank

                      @Christian-Ehrlicher I did try to (Remove Perl from your path so MSVC ) is giving the same issue

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Shrishashank said in Qt Installation Error On Windows System:

                      is giving the same issue

                      For sure not - then gcc. exe from the perl path would not get picked up - start with a clean build dir!
                      what does cl.exe prints out?

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

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Shrishashank
                        wrote on last edited by
                        #11

                        okay, now I have configured it after giving your suggestions, Thank You to everyone.

                        I have one more issue now while building help me resolve it. imgpsh_fullsize_anim (6).jpeg imgpsh_fullsize_anim (7).jpeg

                        showing it failed while I was building using this command as suggested in Documentation: cmake --build . --parallel 4

                        JonBJ 1 Reply Last reply
                        0
                        • S Shrishashank

                          okay, now I have configured it after giving your suggestions, Thank You to everyone.

                          I have one more issue now while building help me resolve it. imgpsh_fullsize_anim (6).jpeg imgpsh_fullsize_anim (7).jpeg

                          showing it failed while I was building using this command as suggested in Documentation: cmake --build . --parallel 4

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by JonB
                          #12

                          @Shrishashank
                          Read the final error message at least. It tells you that you are mixing x86 and x64 object files/libraries. Looks like you are building for 64-bit but asking it to link with a 32-bit version of the "zip" library stuff.

                          1 Reply Last reply
                          1
                          • Christian EhrlicherC Offline
                            Christian EhrlicherC Offline
                            Christian Ehrlicher
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Pass -qt-zlib to make sure the qt zlib is used and not from somewhere in your OS.

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

                            S 1 Reply Last reply
                            1
                            • Christian EhrlicherC Christian Ehrlicher

                              Pass -qt-zlib to make sure the qt zlib is used and not from somewhere in your OS.

                              S Offline
                              S Offline
                              Shrishashank
                              wrote on last edited by
                              #14

                              @Christian-Ehrlicher Do you mean I need to pass in Cmake

                              Christian EhrlicherC 1 Reply Last reply
                              0
                              • S Shrishashank

                                @Christian-Ehrlicher Do you mean I need to pass in Cmake

                                Christian EhrlicherC Offline
                                Christian EhrlicherC Offline
                                Christian Ehrlicher
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @Shrishashank said in Qt Installation Error On Windows System:

                                Do you mean I need to pass in Cmake

                                What does this mean? You don't call cmake anywhere but configure.bat - and this batch file has a '--help' option where you can find all possible options. One of them is '-qt-zlib'.

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

                                S 1 Reply Last reply
                                1
                                • Christian EhrlicherC Christian Ehrlicher

                                  @Shrishashank said in Qt Installation Error On Windows System:

                                  Do you mean I need to pass in Cmake

                                  What does this mean? You don't call cmake anywhere but configure.bat - and this batch file has a '--help' option where you can find all possible options. One of them is '-qt-zlib'.

                                  S Offline
                                  S Offline
                                  Shrishashank
                                  wrote on last edited by
                                  #16

                                  @Christian-Ehrlicher Okay I get it now, ThankYou

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Shrishashank
                                    wrote on last edited by
                                    #17

                                    Thank You to Everyone who helped me resolve this issue. I'm successfully building the Qt source code.

                                    1 Reply Last reply
                                    0
                                    • S Shrishashank has marked this topic as solved on
                                    • S Shrishashank has marked this topic as unsolved on
                                    • S Offline
                                      S Offline
                                      Shrishashank
                                      wrote on last edited by Shrishashank
                                      #18

                                      Hello all, Six days ago, I posted that this issue was solved, but I encountered one more issue while building Qt-SourceCode on Windows.
                                      imgpsh_fullsize_anim (8).jpeg

                                      Could you help me to resolve this issue.

                                      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