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. Compiling of Qt 5.0.0 fails on Windows 7 (64 bit) with VS 2008 in Win32 mode
Forum Updated to NodeBB v4.3 + New Features

Compiling of Qt 5.0.0 fails on Windows 7 (64 bit) with VS 2008 in Win32 mode

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 5 Posters 7.4k 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
    kingofthehill3
    wrote on last edited by
    #2

    This error occurs both with release and debug.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kingofthehill3
      wrote on last edited by
      #3

      Also ANGLE support does not make a difference.
      Can anyone reproduce this problem?

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

        I found my problem!

        I had "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64" in my PATH variable. Unfortunately qmake checks if this path is found in the PATH environment variable to decided if the target of the project is 32 or 64 bits.

        I don't really like this way to detect the architecture, but I guess this is Microsoft's fault :-(

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Basask
          wrote on last edited by
          #5

          It is possible to disable Accessibility support with "-no-accessibility" configure parameter.
          I've done this to solve the same problem as it is not a critical feature to my project.

          1 Reply Last reply
          0
          • U Offline
            U Offline
            unmanner
            wrote on last edited by
            #6

            [quote author="kingofthehill3" date="1358728446"]I found my problem! [/quote]

            Hi!

            Could you please share your solution? I have the same linkage problem and option “-no-accessibility” does not help..

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

              My problem was that I had both x86 and x64 compilers in my path variable and qt detect 64 bit mode if x64 compilers are present. This can happen if you first compiled for 64 bit and thus executed
              @C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat@
              to have all tools available, and then execute
              @C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat@
              and compile for 32 bit WITHOUT restarting cmd.exe.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DanielRMueller
                wrote on last edited by
                #8

                I see the same error message now with Qt 5.1.1 and VS 2010, but I do have only the x64 paths for visual studio set on my system.

                There must be other possible causes... Dang.

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

                  Do you have this error when compiling for 32 or 64 bit? Make sure that your environment does not contain both 32 and 64 bit compiler paths, otherwise 32 bit compiling will fail because he auto-detects 64 bit mode which is obviously wrong.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DanielRMueller
                    wrote on last edited by
                    #10

                    I am compiling 64 Bit and have only the 64 bit compiler paths in the path ,so that shouldn't be it.

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

                      Try this workaround: http://qt-project.org/forums/viewthread/32660/

                      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