Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator 2.6.1 windows source built to 64 bits makes 32 bit projects

QtCreator 2.6.1 windows source built to 64 bits makes 32 bit projects

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 2.7k 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.
  • P Offline
    P Offline
    pmaynard
    wrote on last edited by
    #1

    I built the 5.0.0 "everywhere" QT source with 64 bit libraries (the examples work), built the QtCreator 2.6.1 source (the help says its 64 bit) and when I make a simple console project and try to build it in QtCreator (with VS2010), I get these error messages:

    LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

    How do I tell it to make x64 code?

    P.S. Dependency walker says the .dll's in qtbase\bin are 64 bit

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Which compiler is selected in the Kit you are using? (Tools>Options>Build & Run>Kits)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pmaynard
        wrote on last edited by
        #3

        I've manually added a kit "msvc 2010 64 bit (default)
        Name: msvc 2010 64 bit
        Device Type: Desktop
        Device: Run locally (default for Desktop)
        Sysroot:
        Compiler: Microsoft Windows SDK for Windows 7 (7.1.7600.0.30514)(amd64)
        Debugger: CDB Engine <None>
        Qt version: Qt 5.0.0 (qt-everywhere-opensource-src-5.0.0)
        Qt mkspec:

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Hmmm... Which ABI does the Qt version show in its details? Is it recognized as 64bit?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pmaynard
            wrote on last edited by
            #5

            Tobias,

            Thank you very much for your suggestions. I was suffering from self inflicted wounds - I had installed the 32 bit "official" windows vs2010 qt and qtcreator, and there was some confusion in the qtcreator setup between this installation and the 64 bit compiled source version. I deleted all references to the 32 bit install, and now qtcreator can produce a 64 bit console app that both builds and runs.

            But I'm not out of the woods yet. When I go to vs2010 and use the brand new qt5 visual studio add in 1.2.0 and load the .pro file that I just created with qtcreator, and build with vs2010 I get this error message:

            MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol WinMain referenced in function _tmainCRTStartup

            Any suggestions / tips?

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              Not from my side, sorry. I never used the visual studio plugin.

              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