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. 64bit Qt build on WIndows
Forum Updated to NodeBB v4.3 + New Features

64bit Qt build on WIndows

Scheduled Pinned Locked Moved General and Desktop
13 Posts 3 Posters 3.6k 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.
  • K Offline
    K Offline
    krojew
    wrote on last edited by
    #1

    Hi,
    I'm trying to build 64bit Qt 5.2.0 from source with Visual Studio 2013. I configure the build with the following options:

    @configure.bat -c++11 -no-angle -opengl desktop -nomake examples -opensource -nomake tests -confirm-license@

    Then I simply run nmake.
    Unfortunately, the build stops almost immediately with the following error:

    @SOME_PATH\5.2.0-src\qtbase\src\corelib\codecs\qutfcodec.cpp : fatal error C1083: Cannot open compiler generated file: '.obj\release\qutfcodec.obj': No such file or directory@

    32bit builds work ok. Did anyone encounter such behavior?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      I haven't encountered this message before, but...

      If MSVC and/or Qt are in your system PATH, remove them. Make sure you do your compilation from the "Developer Command Prompt for VS2013"

      Did you do a full clean of your build tree between compilation attempts?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        Why do you want build Qt 5.2.0 for 64 bit on VS ? Do you want do something specific to 64 bit ? If you simply want to have 5.2.0 build on 64 bit system for you development, you can just install 32bit Mingw on 64 bit. It works perfectly. If you are trying something for production for 64 bit, you continue with build.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        0
        • K Offline
          K Offline
          krojew
          wrote on last edited by
          #4

          [quote author="JKSH" date="1389965053"]Hi,

          I haven't encountered this message before, but...

          If MSVC and/or Qt are in your system PATH, remove them. Make sure you do your compilation from the "Developer Command Prompt for VS2013"

          Did you do a full clean of your build tree between compilation attempts?[/quote]

          I'm using the command prompt. I've done 32 bit build earlier and did a nmake clean before 64.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            krojew
            wrote on last edited by
            #5

            After downloading git sources, the build fails on missing header files. I found that there are no headers, those without .h extension, present anywhere. I followed all git wiki instructions. Is there a way to build Qt on windows atm?

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              nmake clean does not do a full clean, because there are many layers of Makefiles. You need...
              @
              git clean -dfx
              git submodule foreach "git clean -dfx"
              @

              ...as described in http://qt-project.org/wiki/Building_Qt_5_from_Git

              I regularly build Qt on Windows and clean using the above command. No issues whatsoever. :)

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • K Offline
                K Offline
                krojew
                wrote on last edited by
                #7

                I managed to find that the Perl script for generating headers did not work. For some reason, when run during full clean build, it doesn't generate any files and build just fails in the end. You have to manually execute it from qtbase first. Also there are some other errors in current git (ex. dom.cpp not seeing dom.h), but this is to be expected from a dev branch.
                After some tweaking I managed to build qtbase but then failed on svg, due to syncqt.pl failing to generate anything beyond qtbase.

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  The version of Perl that comes bundled with Git for Windows is old and buggy. Have you:

                  Installed a more recent version of Perl, and

                  Made sure that it is found in your PATH before the Git Perl?

                  Also, I recommend doing a successful compile of revision that is guaranteed to be good (e.g. the 'v5.2.0' tag in the stable branch), before trying to compile the dev branch.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    krojew
                    wrote on last edited by
                    #9

                    I have the most recent version of Perl.

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      Is it found in your PATH before the Git Perl?

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        krojew
                        wrote on last edited by
                        #11

                        Yes, it is. ActivePerl to be exact, if it makes a difference.

                        1 Reply Last reply
                        0
                        • JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          ActivePerl 5.16 should work fine. This is quite odd. Could you please post the output of configure.bat, from the line that says "Running configuration tests..." onwards?

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            krojew
                            wrote on last edited by
                            #13

                            At the moment that would be quite difficult, since a clean git checkout involves me using two separate machines (don't ask...) and that takes some time. Will do that during the next few days.

                            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