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 Windows compiling
Qt 6.11 is out! See what's new in the release blog

64bit Windows compiling

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 4.3k 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.
  • W Offline
    W Offline
    Wolf-S
    wrote on last edited by
    #1

    Hello,

    I've wanted to do 64-bit before, but now it is necessary as I have libraries that need to be compiled as part of a 64-bit project.

    @#error Win64 installation: Please select the x64 configuration.@

    I've found a "thread":http://qt-project.org/forums/viewthread/279 from 2010 detailing that you need to compile Qt for x64 and the only thing that will not be available is 64-bit MSVC debugging. However, I've found some precompiled "x64 4.8.2 binaries":http://0-code.google.com.library.metmuseum.org/p/qt-msvc-installer/ but Qt Creator cannot assign a toolchain to this version in Projects tab.

    Is there a working step-by-step guide on how to compile 64-bit apps under Windows?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      First, you need a X64 compiler, such as MSVC(64bit) or MinGW-W64

      Then download the source code of Qt, and run
      @
      configure
      nmake
      @

      All is done.


      BTY, If you have got a X64 compiler and X64 Qt library. But QtCreator don't know it. you can give a try to command line.
      @
      qmake
      nmake
      @
      to see whether it works or not.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lfdm
        wrote on last edited by
        #3

        I just compiled a fresh x64 copy.

        You'll need VS2010 Professional or higher. Express doesn't work apparently. I have not been investigating why.

        Check the flags I've used "http://blog.lfdm.net/index.php/2012/06/03/68-qt-compilation-flags":http://blog.lfdm.net/index.php/2012/06/03/68-qt-compilation-flags

        -Damien

        Damien LEFEVRE - http://www.lfdm.net

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          The Windows Platform SDK includes a MSVC compiler as well, which should be also sufficient.

          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