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. Module machine type 'x64' conflicts with target machine type 'X86'
QtWS25 Last Chance

Module machine type 'x64' conflicts with target machine type 'X86'

Scheduled Pinned Locked Moved General and Desktop
7 Posts 6 Posters 18.3k Views
  • 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.
  • L Offline
    L Offline
    luckydevil
    wrote on last edited by
    #1

    Hello. Sorry, for very possible lame question but I've read other topics and didn't find a response. Today I downloaded Qt5, exactly Qt 5.1.1 for Windows 64-bit (VS 2012, OpenGL, 522 MB) and install it. Also I've installed MSVC2012 and Qt Add-in for MSVC2012. Then I pointed Qt path and created simple Qt GUI application. But when I trying to run it i geting the error:
    @Qt5Widgetsd.lib(Qt5Widgetsd.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'.@ What may be the reason?
    "Here":https://qt-project.org/forums/viewthread/26615 an autor had similar problem but resolved it but having not explained how. I checked my Qt version, it is actual. I would be very appriciate you for a help.

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      are you trying to build an x86 (32bit) application with 64-bit binaries? :)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

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

        No. What did you mean? When I change target in linker preferencies to x64 I'm getting similar error, x86 conflicts with x64, but with another library.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mmoll
          wrote on last edited by
          #4

          You are using incompatible libraries, some are 32 bit, some (notably Qt) 64. Download and use the 32 bit Qt version, that should work.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            luckydevil
            wrote on last edited by
            #5

            I downloaded 32 bit Qt and it works. Thanks a lot. It seems some Qt libraries are 32 bit and some (also Qt) are 64. Why? Is it possible to use?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              love8879201
              wrote on last edited by
              #6

              use CMAKE_GENERATOR_PLATFORM

              cmake -DCMAKE_GENERATOR_PLATFORM=x64 .

              A 1 Reply Last reply
              2
              • L love8879201

                use CMAKE_GENERATOR_PLATFORM

                cmake -DCMAKE_GENERATOR_PLATFORM=x64 .

                A Offline
                A Offline
                AlbertoEAF
                wrote on last edited by
                #7

                @love8879201 Thank you!

                That worked like a charm!

                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